Commit e39c94cf authored by Vincent Pelletier's avatar Vincent Pelletier

Fix invalidation method.

This bug was introduced in r928 and causes caches invalidations to be
effectively no-ops.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1679 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b26df9a7
......@@ -123,10 +123,8 @@ class PrimaryNotificationsHandler(BaseHandler):
oids = {}
for oid in oid_list:
oids[oid] = tid
try:
if oid in app.mq_cache:
del app.mq_cache[oid]
except KeyError:
pass
db = app.getDB()
if db is not None:
db.invalidate(tid, oids)
......
......@@ -260,7 +260,7 @@ class MQ(object):
__setitem__ = store
def invalidate(self, key):
if id in self._data:
if key in self._data:
data = self._data[key]
if data.level >= 0:
del self._cache_buffers[data.level][data.element]
......
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