Commit 354679e6 authored by Ivan Tyagov's avatar Ivan Tyagov

Use new Cache API.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13307 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e7b8286
...@@ -71,8 +71,9 @@ ...@@ -71,8 +71,9 @@
<value> <string>"""Clear the cache when validating a new account, for scripts showing a cached\n <value> <string>"""Clear the cache when validating a new account, for scripts showing a cached\n
list of accounts.\n list of accounts.\n
"""\n """\n
from Products.ERP5Type.Cache import clearCache\n from Products.CMFCore.utils import getToolByName\n
clearCache()\n portal_caches = getToolByName(sci.getPortal(), \'portal_caches\')\n
portal_caches.clearCache()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -116,8 +117,10 @@ clearCache()\n ...@@ -116,8 +117,10 @@ clearCache()\n
<value> <value>
<tuple> <tuple>
<string>sci</string> <string>sci</string>
<string>Products.ERP5Type.Cache</string> <string>Products.CMFCore.utils</string>
<string>clearCache</string> <string>getToolByName</string>
<string>_getattr_</string>
<string>portal_caches</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
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