Commit 3dbce8f0 authored by Nicolas Delaby's avatar Nicolas Delaby

Backward compatibility, provide a default value for Preference


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27943 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ee06185
......@@ -135,7 +135,7 @@ class ConversionCacheMixin:
"""
cache_tool = getToolByName(self, 'portal_caches')
preference_tool = getToolByName(self, 'portal_preferences')
cache_factory_name = preference_tool.getPreferredConversionCacheFactory()
cache_factory_name = preference_tool.getPreferredConversionCacheFactory('document_cache_factory')
return cache_tool.getRamCacheRoot().get(cache_factory_name)
security.declareProtected(Permissions.ModifyPortalContent, 'clearConversionCache')
......
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