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

Larry Garfield larry at garfieldtech.com
Fri May 8 06:08:53 UTC 2009


http://drupal.org/project/cacheexclude

:-)

On Friday 08 May 2009 12:52:30 am Ivan Sergio Borgonovo wrote:
> 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?

-- 
Larry Garfield
larry at garfieldtech.com


More information about the support mailing list