[support] excluding pages from cache for anonymous users D5, D6, D7?

Ivan Sergio Borgonovo mail at webthatworks.it
Fri May 8 05:52:30 UTC 2009


I need to exclude pages from cache even for anonymous users.
I found cacheexclude module.
It just
$GLOBALS['conf']['cache'] = FALSE;
but it does it in hook_init and it doesn`t set any weight during
install.

I would like someone confirm my hypothesis.

It does it in init... since it has to be called for each request.
It doesn`t set any weight because content will be cached once every
hook had a chance to fire and header will be sent contextually.

So if I just want to switch cache off on a "menu item base" I just
have to
$GLOBALS['conf']['cache'] = FALSE;
in the function callback.

right?

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



More information about the support mailing list