3 Mar
2010
3 Mar
'10
12:31 p.m.
On Wed, Mar 3, 2010 at 11:12 AM, Roger <dev@projekt01.ch> wrote:
I like to use getGlobalSiteManager by default because this doesn't force a database access and load the local site manager if the site is a local site.
The database access only happens if a local site is set into the corresponding thread local. But such a site is only set up when traversing over the application root via some events. At the point in the startup process when ZCML is processed, there's no traversal events setup that could cause this and nothing should open the database connection and traverse over it either. So +1 on using getSiteManager instead of getGlobalSiteManager. Hanno