Commit f3673f73 authored by Sebastien Robin's avatar Sebastien Robin

put the updateCache in a better place

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11087 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d6edb0fc
...@@ -925,7 +925,6 @@ class ERP5Generator(PortalGenerator): ...@@ -925,7 +925,6 @@ class ERP5Generator(PortalGenerator):
p._setProperty('management_page_charset', 'UTF-8', 'string') p._setProperty('management_page_charset', 'UTF-8', 'string')
self.setup(p, create_userfolder, create_activities=create_activities, self.setup(p, create_userfolder, create_activities=create_activities,
reindex=reindex, **kw) reindex=reindex, **kw)
p.portal_caches.updateCache()
return p return p
def setupLastTools(self, p, **kw): def setupLastTools(self, p, **kw):
...@@ -1323,6 +1322,9 @@ class ERP5Generator(PortalGenerator): ...@@ -1323,6 +1322,9 @@ class ERP5Generator(PortalGenerator):
if not update: if not update:
self.setupERP5Core(p,**kw) self.setupERP5Core(p,**kw)
# Make sure the cache is initialized
p.portal_caches.updateCache()
self.setupLastTools(p, **kw) self.setupLastTools(p, **kw)
# Make sure tools are cleanly indexed with a uid before creating children # Make sure tools are cleanly indexed with a uid before creating children
......
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