Commit 2e3a7aed authored by Julien Muchembled's avatar Julien Muchembled

Do garbage collection to remove references from non-persistent objects

This commit is similar to r32811 and should fix regressions caused by r38601
for good.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38635 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 18b3066f
......@@ -3374,6 +3374,7 @@ class DocumentTemplateItem(BaseTemplateItem):
# Then we need to flush from all caches, not only the one from this
# connection
self.getPortalObject()._p_jar.db().cacheMinimize()
gc.collect()
else:
BaseTemplateItem.install(self, context, trashbin, **kw)
for id in self._archive.keys():
......
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