diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 2f830b737b78e91226e0f86deba4d32b07a73d00..0d01a004e9f909e3bf5c6a474a6d2a692077440b 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -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