I have a splash page (page-splash.tpl.php) and homepage (
On my Drupal 5.7 live and local site, when I set the caching to 'Normal', clicking any 'Home' links will redirect to the splash page, instead of the node I set in the options. This problem is isolated only on anonymous users only. When logged in, this problem does not occur.

If anyone else has this problem, your are welcome to post your comment. Any help will be appreciated.

Thanks!

Comments

Phillip Mc’s picture

The Drupal page cache, when set, applies to anonymous users only. So all registered users are already excluded. That's a drawback if you have dynamic pages, like the front page....and that's why it's working for authenticated users, but, not for anonymous users.

Can I suggest the cacheexclude.module?

cacheexclude.module. The module provides a simple way to exclude certain pages from being cached. Sometimes you want all pages to be cached for anonymous users except for one or two pages that have dynamic or random or rotating content.

That might offer a workaround. there is a <?php $GLOBALS['do_not_cache'] = 1 ?> command to exclude from cache that maybe should be worked into the front page module, but, I'm not sure how the do_not_cache thing works.

I hope that helps

Phillip Mc’s picture

forgot to mention...you may need to clear out all your cache tables after you install the cachexclude.module before it works properly...i.e. your front page for anon users is already in the cache now.

peps’s picture

cacheexclude worked for me. Well, thanks for the tip PhilK. :)

Phillip Mc’s picture

Status: Active » Closed (fixed)