changeset fe7200d4170c in trytond:5.6
details: https://hg.tryton.org/trytond?cmd=changeset&node=fe7200d4170c
description:
Remove client key from the cache's context
issue10099
review331891002
(grafted from 09751b1d7f91427fdde5315e78cc6eb478c09fc8)
diffstat:
trytond/cache.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r e229805b4312 -r fe7200d4170c trytond/cache.py
--- a/trytond/cache.py Sat Feb 20 00:58:39 2021 +0100
+++ b/trytond/cache.py Thu Feb 25 00:05:43 2021 +0100
@@ -63,7 +63,9 @@
def _key(self, key):
if self.context:
- return (key, Transaction().user, freeze(Transaction().context))
+ context = Transaction().context
+ context.pop('client', None)
+ return (key, Transaction().user, freeze(context))
return key
def get(self, key, default=None):