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): ...@@ -147,7 +147,7 @@ def DCWorkflowDefinition_listGlobalActions(self, info):
return map((lambda (id, val): val), res) return map((lambda (id, val): val), res)
# Return Cache # Return Cache
_listGlobalActions = CachingMethod(_listGlobalActions, id='listGlobalActions', cache_duration = 300) _listGlobalActions = CachingMethod(_listGlobalActions, id='listGlobalActions', cache_factory = 'erp5_ui_short')
user = str(_getAuthenticatedUser(self)) user = str(_getAuthenticatedUser(self))
return _listGlobalActions(user=user, id=self.id, portal_path=self._getPortalRoot().getPhysicalPath()) return _listGlobalActions(user=user, id=self.id, portal_path=self._getPortalRoot().getPhysicalPath())
......
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