Commit b53e7e7a authored by Bartek Górny's avatar Bartek Górny

Added performance comment

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11090 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 416ace30
......@@ -203,7 +203,7 @@ class WebSite(Domain):
user = portal.acl_users.getUserById(self.getWebmaster())
if user is not None:
old_manager = getSecurityManager()
newSecurityManager(get_request(), user)
newSecurityManager(get_request(), user) # Should be cached per request XXX
document = self.WebSite_getDocumentValue(portal, name)
request[CACHE_KEY][name] = document
if user is not None:
......
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