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 @@
<value> <string>"""Clear the cache when validating a new account, for scripts showing a cached\n
list of accounts.\n
"""\n
from Products.ERP5Type.Cache import clearCache\n
clearCache()\n
from Products.CMFCore.utils import getToolByName\n
portal_caches = getToolByName(sci.getPortal(), \'portal_caches\')\n
portal_caches.clearCache()\n
</string> </value>
</item>
<item>
......@@ -116,8 +117,10 @@ clearCache()\n
<value>
<tuple>
<string>sci</string>
<string>Products.ERP5Type.Cache</string>
<string>clearCache</string>
<string>Products.CMFCore.utils</string>
<string>getToolByName</string>
<string>_getattr_</string>
<string>portal_caches</string>
</tuple>
</value>
</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