Commit 01d96399 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Use appropriate key in cache.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15408 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 22d3b174
......@@ -369,7 +369,7 @@ class WebSection(Domain):
"""
cache = getReadOnlyTransactionCache(self)
if cache is not None:
key = ('getDocumentValueList', self, document.getPath())
key = ('getPermanentURL', self, document.getPath())
try:
return cache[key]
except KeyError:
......@@ -395,7 +395,7 @@ class WebSection(Domain):
"""
cache = getReadOnlyTransactionCache(self)
if cache is not None:
key = ('getDocumentValueList', self, document.getPath())
key = ('getBreadcrumbItemList', self, document.getPath())
try:
return cache[key]
except KeyError:
......
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