By Rahner on
As you can read, I need the Cache Module to reduce Database queries, but my frontpages makes use of various Scripts that are dynamically loaded and have other caching solutions.
So how can i prevent the frontpage from beeing cached?
The CacheExclude Module for Drupal is very basic and works only for Subpages and not for the frontpage...
Anybody knows a possible solution?
Comments
Just change line 46 to; if
Just change line 46 to;
if ($page && strstr($this_page, $page) !== false || ($page == '<front>' && drupal_is_front_page())) {Then (obviously) use
<front>to reference the frontpage in your cacheexclude settings.Pobster
Thank your for this
Thank your for this addition, do you know how I can now test, if all nodes are cached and the frontpage not?
I tested it, it works - to
I tested it, it works - to see it working try doing this;
Then you'll see the message returned AT THE BOTTOM OF THE PAGE (as it's called on hook_exit) upon successful pick up.
Pobster
Thank you pobster!
Thank you pobster!