caches: don't use lambda for caching query for easier cache debugging.
This commit is contained in:
parent
82b7512635
commit
1f15313ae4
1 changed files with 5 additions and 2 deletions
|
|
@ -99,8 +99,11 @@ class CachingQuery(Query):
|
|||
|
||||
"""
|
||||
if hasattr(self, '_cache_parameters'):
|
||||
return self.get_value(createfunc=lambda:
|
||||
list(Query.__iter__(self)))
|
||||
|
||||
def caching_query():
|
||||
return list(Query.__iter__(self))
|
||||
|
||||
return self.get_value(createfunc=caching_query)
|
||||
else:
|
||||
return Query.__iter__(self)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue