Commit 87f8dec5 authored by Bartek Górny's avatar Bartek Górny

pass cache_factory argument to caching method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18993 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 329a3467
...@@ -524,7 +524,8 @@ class Category(Folder): ...@@ -524,7 +524,8 @@ class Category(Folder):
localizer = getToolByName(self, 'Localizer') localizer = getToolByName(self, 'Localizer')
language = localizer.get_selected_language() language = localizer.get_selected_language()
m = CachingMethod(_renderCategoryChildItemList, m = CachingMethod(_renderCategoryChildItemList,
('Category_getCategoryChildItemList', language, self.getPath())) ('Category_getCategoryChildItemList', language, self.getPath()),
cache_factory=cache)
return m(recursive=recursive, base=base, **kw) return m(recursive=recursive, base=base, **kw)
......
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