Fix Cache to use the local thread context
This commit is contained in:
1 parent
eb820df535
commit
d6b453a516
1 file changed
+1
-1
+1
-1
@@ -27,7 +27,7 @@ class Cache(object):
|
||||
|
||||
def _key(self, key):
|
||||
if self.context:
|
||||
return (key, Transaction().user, repr(Transaction.context))
|
||||
return (key, Transaction().user, repr(Transaction().context))
|
||||
return key
|
||||
|
||||
def get(self, key, default=None):
|
||||
|
||||
Reference in new issue
Block a user