##// END OF EJS Templates
caches: don't use lambda for caching query for easier cache debugging.
marcink -
r2671:465c98d6 default
parent child Browse files
Show More
@@ -99,8 +99,11 b' class CachingQuery(Query):'
99
99
100 """
100 """
101 if hasattr(self, '_cache_parameters'):
101 if hasattr(self, '_cache_parameters'):
102 return self.get_value(createfunc=lambda:
102
103 list(Query.__iter__(self)))
103 def caching_query():
104 return list(Query.__iter__(self))
105
106 return self.get_value(createfunc=caching_query)
104 else:
107 else:
105 return Query.__iter__(self)
108 return Query.__iter__(self)
106
109
General Comments 0
You need to be logged in to leave comments. Login now