Commit 82441688 authored by Ivan Tyagov's avatar Ivan Tyagov

Mark global Cache function clearCache() as deprecated.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13220 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e67f2db
......@@ -246,6 +246,9 @@ def disableReadOnlyTransactionCache(context):
def clearCache(cache_factory_list=(DEFAULT_CACHE_FACTORY,)):
"""Clear specified cache factory list."""
LOG("Cache.clearCache", \
WARNING, \
"Global function clearCache() is deprecated. Use portal_caches.clearCache() instead.")
cache_storage = CachingMethod.factories
for cf_key in cache_factory_list:
if cache_storage.has_key(cf_key):
......
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