X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Faggregate_manager_pl.py;h=df6f1ce7e84901be46c104dff20aeffb18e78cfd;hb=9d434b4200b3676cf416ca79bc07021549dd427b;hp=9f407ee06312c6997e33f5ac2f78d5d8a45438f9;hpb=346c7cf9a20c1ff8c4d3a6ec85fbf168e43d0b52;p=sfa.git diff --git a/sfa/managers/aggregate_manager_pl.py b/sfa/managers/aggregate_manager_pl.py index 9f407ee0..df6f1ce7 100644 --- a/sfa/managers/aggregate_manager_pl.py +++ b/sfa/managers/aggregate_manager_pl.py @@ -322,8 +322,9 @@ def ListResources(api, creds, options,call_id): else: # generate rspec in both pg and sfa formats rspec = aggregate.get_rspec(version=rspec_version) + # cache the result - if caching and api.cache: + if caching and api.cache and not xrn: api.cache.add(version_string, rspec) return rspec