From 62b8321101f106e2b1fecb0ab29543002a03e030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 12 Mar 2012 15:33:43 +0100 Subject: [PATCH] Don't use LRUCache as context cache to allow to clean it References to the cursor cache are kept on BrowseRecord, we must be sure that this cache will be cleaned. review272001 --- trytond/backend/database.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trytond/backend/database.py b/trytond/backend/database.py index 808c0d10c7..3ca6b181fc 100644 --- a/trytond/backend/database.py +++ b/trytond/backend/database.py @@ -104,8 +104,7 @@ class CursorInterface(object): IN_MAX = 1000 def __init__(self): - from trytond.cache import LRUDict - self.cache = LRUDict(CONTEXT_CACHE_SIZE) + self.cache = {} def get_cache(self, context=None): '''