Commit 0fc904bb authored by Aurel's avatar Aurel

define cache factory

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13088 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 89a12a50
...@@ -109,7 +109,7 @@ if to_currency is not None:\n ...@@ -109,7 +109,7 @@ if to_currency is not None:\n
return result\n return result\n
# The cache duration must not be too long, 300 is the maximum\n # The cache duration must not be too long, 300 is the maximum\n
calculateExchangeFromParameters = CachingMethod(calculateExchangeFromParameters, \n calculateExchangeFromParameters = CachingMethod(calculateExchangeFromParameters, \n
id = \'calculateExchangeFromParameterss\', cache_duration = 300)\n id = \'calculateExchangeFromParameterss\', cache_factory = \'erp5_user_interface_short\')\n
result = calculateExchangeFromParameters(start_date=start_date,\n result = calculateExchangeFromParameters(start_date=start_date,\n
currency_exchange_type=currency_exchange_type,\n currency_exchange_type=currency_exchange_type,\n
from_currency=from_currency,to_currency=to_currency)\n from_currency=from_currency,to_currency=to_currency)\n
......
...@@ -89,7 +89,7 @@ from Products.ERP5Type.Cache import CachingMethod\n ...@@ -89,7 +89,7 @@ from Products.ERP5Type.Cache import CachingMethod\n
getCurrencyItemList = CachingMethod(\n getCurrencyItemList = CachingMethod(\n
getCurrencyItemList,\n getCurrencyItemList,\n
id=\'CurrencyModule_getCurrencyItemList\',\n id=\'CurrencyModule_getCurrencyItemList\',\n
cache_duration=30000, )\n cache_factory = \'erp5_user_interface_short\')\n
\n \n
return getCurrencyItemList( include_empty=include_empty,\n return getCurrencyItemList( include_empty=include_empty,\n
portal_path=portal.getPath() )\n portal_path=portal.getPath() )\n
......
84 87
\ No newline at end of file \ No newline at end of file
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