Commit 7e8f2de2 authored by Aurel's avatar Aurel

define cache factory instead of duration

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13816 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5594444
......@@ -147,7 +147,7 @@ def DCWorkflowDefinition_listGlobalActions(self, info):
return map((lambda (id, val): val), res)
# Return Cache
_listGlobalActions = CachingMethod(_listGlobalActions, id='listGlobalActions', cache_duration = 300)
_listGlobalActions = CachingMethod(_listGlobalActions, id='listGlobalActions', cache_factory = 'erp5_ui_short')
user = str(_getAuthenticatedUser(self))
return _listGlobalActions(user=user, id=self.id, portal_path=self._getPortalRoot().getPhysicalPath())
......@@ -507,4 +507,4 @@ def createERP5Workflow(id):
addWorkflowFactory(createERP5Workflow,
id='erp5_workflow',
title='ERP5-style empty workflow')
\ No newline at end of file
title='ERP5-style empty workflow')
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