Title: Conditional Cache
Last modified: July 8, 2019

---

# Conditional Cache

 *  Resolved [lw5](https://wordpress.org/support/users/lw5/)
 * (@lw5)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/conditional-cache/)
 * Is it possible to, in PHP (for instance through a Must Use plugin), tell WP Fastest
   Cache to give back a fresh page instead of the cached version?

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

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/conditional-cache/#post-11711507)
 * do you want to use the buffer before creating cache?
 *  Thread Starter [lw5](https://wordpress.org/support/users/lw5/)
 * (@lw5)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/conditional-cache/#post-11711971)
 * No, I want to opt-out of using the cached page (without re-creating the cached
   page) in some situations. Either that, or have the ability to choose between ‘
   cached versions’ of a page. My backup solution is to exclude these pages from
   the caching entirely.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/conditional-cache/#post-11712104)
 * do you want to disable cache for some pages?
 *  Thread Starter [lw5](https://wordpress.org/support/users/lw5/)
 * (@lw5)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/conditional-cache/#post-11712144)
 * No, I only want to bypass using the cached version of a page for certain visitors.
   So, say I have a $_SESSION variable ‘no_cache’, I’d like to have the page render
   in full and not use the cache. When the variable is not set, I want to load the
   cached page.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/conditional-cache/#post-11712178)
 * it is not possible after created cache because PHP does not work.
 *  Thread Starter [lw5](https://wordpress.org/support/users/lw5/)
 * (@lw5)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/conditional-cache/#post-11712193)
 * Yes, but Must Use plugins execute before WP Fastest Cache, so I was hoping to
   be able to do something from there.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/conditional-cache/#post-11712380)
 * but if the cache is created one, you cannot execute PHP.
 *  Thread Starter [lw5](https://wordpress.org/support/users/lw5/)
 * (@lw5)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/conditional-cache/#post-11713367)
 * Doh, I just tested this; you’re right. I mistakenly thought there was still some
   PHP executed before requesting the cache.

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

The topic ‘Conditional Cache’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [lw5](https://wordpress.org/support/users/lw5/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/conditional-cache/#post-11713367)
 * Status: resolved