Title: Disable cache by PHP
Last modified: August 31, 2016

---

# Disable cache by PHP

 *  Resolved [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years ago](https://wordpress.org/support/topic/disable-cache-by-php/)
 * Could You add disabling the caching for specify page by PHP? This future is in
   WP Super Cache – when in PHP is “define(‘DONOTCACHEPAGE’, true);” the plugin 
   don’t cache the page. I really need this 🙂
 * [https://wordpress.org/plugins/wp-fastest-cache/](https://wordpress.org/plugins/wp-fastest-cache/)

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

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years ago](https://wordpress.org/support/topic/disable-cache-by-php/#post-7442037)
 * I am afraid of adding this feature. Did you see exclude page feature?
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years ago](https://wordpress.org/support/topic/disable-cache-by-php/#post-7442066)
 * Exclude page feature works fine but I need to exclude some page **automaticaly**.
   Why? I’m plugins developer and one plugin not working when page is cached (problem
   with wp_nonce_field in forms). For others plugins that cache pages (e.g. WP Super
   Cache) I simple use constat DONOTCACHEPAGE. I see that You provide “<!–[wpfcNOT]–
   >” but:
 * 1. Is this working in whole page? Can I put this in widget or somewhere in footer?
   
   2. If yes, I need to code another solution only for Your plugin where that solution
   which I already have works perfect for e.g. WP Super Cache and W3 Total Cache…
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years ago](https://wordpress.org/support/topic/disable-cache-by-php/#post-7442078)
 * > 1. Is this working in whole page? Can I put this in widget or somewhere in 
   > footer?
 * Yes, it works on everywhere. Just it needs to be called in the html
 * > 2. If yes, I need to code another solution only for Your plugin where that 
   > solution which I already have works perfect for e.g. WP Super Cache and W3 
   > Total Cache…
 * You are right but some plugin developers defines DONOTCACHEPAGE as global so 
   my customers think that WPFC does not work.
 *  Thread Starter [Beherit](https://wordpress.org/support/users/beherit/)
 * (@beherit)
 * [10 years ago](https://wordpress.org/support/topic/disable-cache-by-php/#post-7442086)
 * Thanks 🙂
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [10 years ago](https://wordpress.org/support/topic/disable-cache-by-php/#post-7442110)
 * you are welcome 🙂 If you vote, you make me so happy.
 * [https://wordpress.org/support/view/plugin-reviews/wp-fastest-cache?rate=5#postform](https://wordpress.org/support/view/plugin-reviews/wp-fastest-cache?rate=5#postform)

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

The topic ‘Disable cache by PHP’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/disable-cache-by-php/#post-7442110)
 * Status: resolved