Commit 76a1c7a0 authored by Jérome Perrin's avatar Jérome Perrin

Update cache when installing a new cache plugin


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23629 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 194418ab
......@@ -864,6 +864,12 @@ class ObjectTemplateItem(BaseTemplateItem):
# skip transforms that couldn't have been initialized
if obj.title != 'BROKEN':
container._mapTransform(obj)
elif obj.meta_type in ('ERP5 Ram Cache',
'ERP5 Distributed Ram Cache',
'ERP5 SQL Cache'):
assert container.meta_type == 'ERP5 Cache Factory'
container.getParentValue().updateCache()
recurse(restoreHook, obj)
# now put original order group
# we remove object not added in forms
......
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