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.
This commit is contained in:
1 parent
b3f8d125f9
commit
0601bf63cf
1 file changed
+1
-1
+1
-1
@@ -371,7 +371,7 @@ class Fs2bdAccessor:
|
||||
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):
|
||||
|
||||
Reference in new issue
Block a user