Title: deactivate quick cache for specific folder / image
Last modified: August 21, 2016

---

# deactivate quick cache for specific folder / image

 *  Resolved [sapu78](https://wordpress.org/support/users/sapu78/)
 * (@sapu78)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/deactivate-quick-cache-for-specific-folder-image/)
 * hi
 * is there a way to deactivate quick cahe for a specific file / folder?
    we have
   a webcam implemented as jpg which should never be chached.
 * txs, paul
 * [https://wordpress.org/plugins/quick-cache/](https://wordpress.org/plugins/quick-cache/)

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

 *  Plugin Author [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/deactivate-quick-cache-for-specific-folder-image/#post-4606295)
 * [@sapu78](https://wordpress.org/support/users/sapu78/) You can add `define('DONOTCACHEPAGE',
   TRUE)` to the top of whatever PHP page you don’t want cached. See the [Theme/Plugin Developers](https://github.com/WebSharks/Quick-Cache/wiki/Plugin-Options#wiki-themeplugin-developers)
   section (**Dashboard → Quick Cache → Theme/Plugin Developers**).
 *  Thread Starter [sapu78](https://wordpress.org/support/users/sapu78/)
 * (@sapu78)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/deactivate-quick-cache-for-specific-folder-image/#post-4606345)
 * dear ramm dev
 * thank you for your quick replay. unfortunately, we’re still experiencing problems
   with the plugin.
 * the speed went up a lots of points (google speedtest) but the webcam is still
   cached and people are complaining, thet the webcam is not live….
 * pls check out [http://www.randa.ch](http://www.randa.ch)
 * the develepper tried to exclude the home for quick cache as you describet – but
   it seams not working.
 * any idea? I really want quick cache enabled (cause of seo impact) but if the 
   webcam remains cached, i’ll hace to deactivate.
 * is it possible to send you an email / give you access?
 * txs for your help
    paul
 *  Plugin Author [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/deactivate-quick-cache-for-specific-folder-image/#post-4606346)
 * If you’re a Quick Cache Pro user, you can [open a trouble ticket](https://www.websharks-inc.com/support/?product=quick-cache&request_type=trouble_ticket),
   otherwise I can only offer help here through the WordPress.org Forums.
 * The `<?php define('DONOTCACHEPAGE', TRUE); ?>` is very simple to add. Alternatively,
   you could add something like the following to your theme’s `header.php` file:
 *     ```
       <?php
       if( is_home() || is_front_page() ) {
           define('DONOTCACHEPAGE', TRUE);
       }
       ?>
       ```
   
 *  Thread Starter [sapu78](https://wordpress.org/support/users/sapu78/)
 * (@sapu78)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/deactivate-quick-cache-for-specific-folder-image/#post-4606348)
 * thanks.
 * if i would know, that it’s working, i would go for pro….
 * this is in the header:
    [http://screencast.com/t/rV34gdfPM](http://screencast.com/t/rV34gdfPM)
 * but as you can see – the page is still chached:
    [http://www.randa.ch](http://www.randa.ch)
 *  Thread Starter [sapu78](https://wordpress.org/support/users/sapu78/)
 * (@sapu78)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/deactivate-quick-cache-for-specific-folder-image/#post-4606349)
 * so i could manage that the home ist not cached with this in the header.php. i
   cannot find the notes in the source of the home (which ist correct)…. but i can
   also not find the notes on any other page. so it seams as qc is not working at
   all?
 *     ```
       <?php
       if ( is_page('402') or  is_page('95') ) {
       echo '<meta http-equiv="expires" content="0" />';
       echo '<meta http-equiv="Cache-Control" CONTENT="no-cache" />';
       echo '<meta http-equiv="Pragma" CONTENT="no-cache" />';
       define('QUICK_CACHE_ALLOWED', FALSE);
       }
       ?>
       ```
   
 *  Plugin Author [Raam Dev](https://wordpress.org/support/users/raamdev/)
 * (@raamdev)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/deactivate-quick-cache-for-specific-folder-image/#post-4606350)
 * If you remove that code from `header.php`, do the Quick Cache notes show up anywhere?
 * If Quick Cache isn’t working, then we should fix that first. There are a few 
   possible reasons that Quick Cache might not be working. I would start with disabling
   other plugins and switching to the default TwentyFourteen theme to see if a plugin
   or theme conflict is the cause.
 * If there’s no plugin or theme conflict, then it might be an issue with your server
   configuration and you’ll need to look at the PHP error log on the server to see
   if there are any clues there.
 *  [johnzenausa](https://wordpress.org/support/users/johnzenausa/)
 * (@johnzenausa)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/deactivate-quick-cache-for-specific-folder-image/#post-4606356)
 * If you have that image on only one page what you can do as a work around is to
   install these two plugins. It works for me on my site: [http://www.protein-energy-shakes.com](http://www.protein-energy-shakes.com).(
   Just check the source code and you know it isn’t cached).
    - [http://wordpress.org/plugins/php-code-widget/](http://wordpress.org/plugins/php-code-widget/)
    - [http://wordpress.org/plugins/widgets-on-pages/](http://wordpress.org/plugins/widgets-on-pages/)
 * First thing your are going to do after you activate both plugins is drag the 
   PHP Code widget in to the Widgets on Pages area (it will show up in the right
   column in the widgets area). Put the following code in to the box (text area)
   on the PHP Code widget `<?php define('QUICK_CACHE_ALLOWED', FALSE); ?>` then 
   put the shortcode it gives you anywhere in the content area of the page that 
   contains the above jpeg file.
 * This is the only way I was able to get it to work. That way you don’t have to
   dig in to the themes hard code and have it erased on the next update. Don’t worry
   it won’t show up anywhere in the content area, completely unnoticeable.

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

The topic ‘deactivate quick cache for specific folder / image’ 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/)

 * 7 replies
 * 3 participants
 * Last reply from: [johnzenausa](https://wordpress.org/support/users/johnzenausa/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/deactivate-quick-cache-for-specific-folder-image/#post-4606356)
 * Status: resolved