Commit 280a5774 authored by Vincent Pelletier's avatar Vincent Pelletier

When the "transactional undo" object is stored, prune it from cache.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1855 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c8f49d80
...@@ -750,6 +750,9 @@ class Application(object): ...@@ -750,6 +750,9 @@ class Application(object):
try: try:
for oid in self.local_var.data_dict.iterkeys(): for oid in self.local_var.data_dict.iterkeys():
data = self.local_var.data_dict[oid] data = self.local_var.data_dict[oid]
if data == '':
del self.mq_cache[oid]
else:
# Now serial is same as tid # Now serial is same as tid
self.mq_cache[oid] = self.local_var.tid, data self.mq_cache[oid] = self.local_var.tid, data
finally: finally:
......
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