Title: Cache duration: create exceptions for some pages?
Last modified: August 22, 2016

---

# Cache duration: create exceptions for some pages?

 *  Resolved [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/cache-duration-create-exceptions-for-some-pages/)
 * Hi
 * Is there anywhere I can create cache duration exceptions for some pages?
    I would
   like a default cache duration of 24 hours but some pages I would like 5 minutes.
   Is there a PHP I can change to accomplish this (like I can turn caching on or
   off for some pages depending on strings).
 * thanks!
 * [https://wordpress.org/plugins/wp-ffpc/](https://wordpress.org/plugins/wp-ffpc/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [petermolnar](https://wordpress.org/support/users/cadeyrn/)
 * (@cadeyrn)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/cache-duration-create-exceptions-for-some-pages/#post-5233029)
 * No, not at the moment and this is not planned.
    It can be done, but would require
   a mapping input field group which would only make things much, much more complicated.
 * To turn off the cache on some pages there is a new function in [the yet-to-be-released git version already](https://github.com/petermolnar/wp-ffpc).
 *  Thread Starter [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/cache-duration-create-exceptions-for-some-pages/#post-5233071)
 * Thanks for your answer.
 * I was thinking about the homepage. New articles get posted there several times
   a day. I would not want to completely disable the cache as this is the most visited
   page but I would certainly not be happy with a 24-hour cache for this page.
 * But I understand your concerns about complexity.
 *  [whatsthatbugcom](https://wordpress.org/support/users/whatsthatbugcom/)
 * (@whatsthatbugcom)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/cache-duration-create-exceptions-for-some-pages/#post-5233097)
 * What if you set cache invalidation to “modified post and posts index page”?
 *  Thread Starter [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/cache-duration-create-exceptions-for-some-pages/#post-5233101)
 * I do not have this option in my settings 🙂
 * I have:
    – flush cache – modified post (this is what I am using) – modified post
   and all taxonomies.
 *  Thread Starter [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/cache-duration-create-exceptions-for-some-pages/#post-5233129)
 * Is there a way I could just purge the homepage from the cache?
 * I tried the empty cache button but its effects are extreme as it even empties
   the object cache contained in memcache.
 * I also tried setting to modified post and all taxonomies but that does not reset
   my homepage on a new article publication or modification.
 *  Plugin Author [petermolnar](https://wordpress.org/support/users/cadeyrn/)
 * (@cadeyrn)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/cache-duration-create-exceptions-for-some-pages/#post-5233130)
 * > I tried the empty cache button but its effects are extreme as it even empties
   the object cache contained in memcache.
 * You can use a different memcached as backend for wp-ffpc to prevent this.
 * —
 * I’ll try to add the frontpage to the post & taxonomies option.
 * —
 * I would highly recommend to set a low time on the cache for now, like 100s; in
   this case, there will be only a slight delay in showing the new version of the
   frontpage and a single boost of visits will not trigger any issues on a sub-page
   either.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Cache duration: create exceptions for some pages?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-ffpc_ffffff.svg)
 * [WP-FFPC](https://wordpress.org/plugins/wp-ffpc/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ffpc/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ffpc/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ffpc/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ffpc/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ffpc/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [petermolnar](https://wordpress.org/support/users/cadeyrn/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/cache-duration-create-exceptions-for-some-pages/#post-5233130)
 * Status: resolved