Title: How to exclude plugins from cache?
Last modified: August 21, 2016

---

# How to exclude plugins from cache?

 *  Resolved [Frontman](https://wordpress.org/support/users/frontman/)
 * (@frontman)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/how-to-exclude-plugins-from-cache/)
 * Hi,
 * I have a couple of plugins on my site that call random text and images but QC
   caches the pages and stops the random element working. Is there a way to exclude
   certain plugins from being cached please?
 * [https://wordpress.org/plugins/quick-cache/](https://wordpress.org/plugins/quick-cache/)

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

 *  Plugin Author [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/how-to-exclude-plugins-from-cache/#post-4665622)
 * You can add `define('DONOTCACHEPAGE', true);` to all of the pages that contain
   the random element loaded by the plugins, but there is no way to tell Quick Cache
   to exclude a specific plugin’s output from being cached.
 * For more information, please see [Theme/Plugin Developers](https://github.com/WebSharks/Quick-Cache/wiki/Plugin-Options#wiki-themeplugin-developers).
 *  [johnzenausa](https://wordpress.org/support/users/johnzenausa/)
 * (@johnzenausa)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/how-to-exclude-plugins-from-cache/#post-4665624)
 * What would the exact code be? Something like this?
 *     ```
       <?php
       if ( !defined('DONOTCACHEPAGE') ){
       	define('DONOTCACHEPAGE',true);
       }
       ?>
       ```
   
 *  [johnzenausa](https://wordpress.org/support/users/johnzenausa/)
 * (@johnzenausa)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/how-to-exclude-plugins-from-cache/#post-4665625)
 * Okay on your website it says to use the following code.
 *     ```
       <?php
       define('QUICK_CACHE_ALLOWED', FALSE);
       ?>
       ```
   
 * I entered it on the home page and it is now not being cached.
 * Sorry about my previous message, please disregard.
 *  Thread Starter [Frontman](https://wordpress.org/support/users/frontman/)
 * (@frontman)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/how-to-exclude-plugins-from-cache/#post-4665627)
 * Thanks for the reply. Unfortunately I use the random text plugins on most pages
   so this approach would not be possible. Thanks anyway 🙂
 *  [Kramarz](https://wordpress.org/support/users/kramarz/)
 * (@kramarz)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/how-to-exclude-plugins-from-cache/#post-4665645)
 * Wonder what ‘random text plugins’ are you talking about Frontman, out of curiosity,
   so I don’t break something on my websites, by installing Quick Cache. If you 
   don’t mind sharing the wisdom.

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

The topic ‘How to exclude plugins from cache?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-cache_efefef.svg)
 * [Quick Cache (Speed Without Compromise)](https://wordpress.org/plugins/quick-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-cache/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 5 replies
 * 4 participants
 * Last reply from: [Kramarz](https://wordpress.org/support/users/kramarz/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/how-to-exclude-plugins-from-cache/#post-4665645)
 * Status: resolved