diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml index 2df4037ab6fc231ebdaacee57b9669bdfc068f8b..953c7971b81d76a886c12e233db3797c0a180e12 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BusinessTemplate_getModifiedObject.xml @@ -61,9 +61,18 @@ def getModifiedObjectList(context):\n result = context.preinstall()\n return result\n \n +def cacheIdGenerator(method_id, *args, **kw):\n + context = args[0]\n + return \'%s%s%s\' % (method_id,\n + context.getUid(),\n + context.getModificationDate().timeTime())\n +\n +cache_id_generator = cacheIdGenerator\n +\n getModifiedObjectList = CachingMethod(getModifiedObjectList,\n id=\'BusinessTemplate_getModifiedObjectList\',\n - cache_factory=\'erp5_ui_medium\')\n + cache_factory=\'erp5_ui_medium\',\n + cache_id_generator=cache_id_generator)\n \n modified_object_list = getModifiedObjectList(context)\n keys = modified_object_list.keys()\n @@ -159,6 +168,8 @@ return object_list\n <string>context</string> <string>Base_translateString</string> <string>getModifiedObjectList</string> + <string>cacheIdGenerator</string> + <string>cache_id_generator</string> <string>modified_object_list</string> <string>keys</string> <string>no_backup_list</string> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 74532d807c02fe00de5f6e2fee318a013318cd1c..029aeb486f9583f08c53e28fae0e84633fcbe4f9 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -1471 \ No newline at end of file +1474 \ No newline at end of file