Commit d12cae21 authored by Julien Muchembled's avatar Julien Muchembled

small optimization

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39159 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 06606ffc
......@@ -101,14 +101,13 @@ except ImportError:
def getTransactionalVariable():
return {}
def generateCatalogCacheId(method_id, *args, **kwd):
self = args[0]
def generateCatalogCacheId(method_id, self, *args, **kwd):
# XXX: getPath is overkill for a unique cache identifier.
# What I would like to use instead of it is:
# (self._p_jar.db().database_name, self._p_oid)
# but database_name is not unique in at least ZODB 3.4 (Zope 2.8.8).
return str((method_id, self.getCacheSequenceNumber(), self.getPath(),
args[1:], kwd))
args, kwd))
class transactional_cache_decorator:
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment