[support] excluding pages from cache for anonymous users D5, D6, D7?
Ivan Sergio Borgonovo
mail at webthatworks.it
Fri May 8 07:27:32 UTC 2009
On Fri, 8 May 2009 01:08:53 -0500
Larry Garfield <larry at garfieldtech.com> wrote:
> 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 is Friday for everyone... ;)
I was wondering why it is doing it that way so I could replicate the
functionality in my code without missing any details.
thanks
> > 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