changeset f07a73976447 in trytond:5.0
details: https://hg.tryton.org/trytond?cmd=changeset&node=f07a73976447
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 90ca3f3cc4c5 -r f07a73976447 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
@@ -35,7 +35,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):