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
This commit is contained in:
Cédric Krier committed 2012-03-12 15:33:43 +01:00
1 parent 2755bba988
commit 62b8321101
1 file changed
+1 -2
+1 -2
View File
@@ -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):
'''