changeset 6e805b3304aa in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=6e805b3304aa
description:
Delete cache content instead of setting empty dictionary
Since issue9369, the cache uses a dedicated class instead of dictionary.
So to clear the cache, we must delete the key.
diffstat:
trytond/convert.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 22260a3783da -r 6e805b3304aa trytond/convert.py
--- a/trytond/convert.py Sat Jun 13 09:48:03 2020 +0200
+++ b/trytond/convert.py Mon Jun 15 14:13:29 2020 +0200
@@ -371,7 +371,7 @@
cache, cache.get('_language_cache', {}).values()):
if (model_name in cache
and model.id in cache[model_name]):
- cache[model_name][model.id] = {}
+ del cache[model_name][model.id]
self.browserecord[module][model_name][model.id] = model
def fetch_new_module(self, module):