Title: Excluding specific pages &amp; posts from caching
Last modified: August 30, 2016

---

# Excluding specific pages & posts from caching

 *  [xprt007](https://wordpress.org/support/users/xprt007/)
 * (@xprt007)
 * [11 years ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/)
 * Hi
 * I have read 2, 3 articles on excluding some pages from caching, such as [https://wordpress.org/support/topic/how-can-i-exclude-a-page-from-caching](https://wordpress.org/support/topic/how-can-i-exclude-a-page-from-caching)&
   [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
   but I do not quite get it.
    With the plugin Hyper Cache, it is much easier to
   configure, since you can on the config page just paste the url/uri like /news/,
   or /softwaregiveaway, etc u would like to exclude.
 * So I have some pages that include RSS feeds loading foreign content, one by pasting
   code onto a page, the other generated by the RSS multi importer plugin & posting
   its shortcodes on different pages for different feeds.
 * I also have some 2 or so sticky posts, one with RSS content that is updated dynamically.
 * How exactly do I do this? I do not quite get the above explanation & if it has
   the answer, could someone please simplify it for me, based on the examples of
   pages I want to cache?
 * Also, what exactly is this => DO NOT CACHE PAGE secret key: 8c123a15da7aa1e72b3a5ccc395e3313&
   do we have to use it anywhere & if so, how?
 * I would very much appreciate a helpful comment.
 * Regards 6 thank you in advance
 * [https://wordpress.org/plugins/wp-super-cache/](https://wordpress.org/plugins/wp-super-cache/)

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

 *  [ecdltf](https://wordpress.org/support/users/ecdltf/)
 * (@ecdltf)
 * [11 years ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207005)
 * > How exactly do I do this? I do not quite get the above explanation & if it 
   > has the answer, could someone please simplify it for me, based on the examples
   > of pages I want to cache?
 * I just tried it on my test site, and it seems to work properly. For example, 
   I have a post with the URL “[http://<my.site>/utf-keyboard-layout/&#8221](http://<my.site>/utf-keyboard-layout/&#8221);.
   When I add the string “utf” (without the quotes) to the exceptions that page 
   won’t get cached any longer. (To apply/see the change you have to delete the 
   existing cache in the “Contents” tab; it won’t retroactively delete already cached
   pages.) The exclusion seems to apply to the preload cache as well.
 * Actually this is easier than Hyper Cache’s method where you have to apply the
   whole URL (according to your info), since with one string you can catch several
   pages.
 * BTW, as far as I know, Hyper Cache does only caching via PHP (without mod_rewrite).
   So if you don’t use mod_rewrite you could probably use Hyper Cache as well, if
   you are more comfortable with it. (In WPSC you can choose the caching method 
   at the top of the “Advanced” tab.)
 * > Also, what exactly is this => DO NOT CACHE PAGE secret key:
 * This is only for testing purposes and will force the uncached version of a page.
   Just add the “?donotcachepage=8c123a15da7aa1e72b3a5ccc395e3313” at the end of
   the URL (after the last slash) and you will see the uncached page. But this is
   certainly not meant for “regular” page exclusion; use the exclusion method as
   described above instead.
 * Tom
 *  [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [11 years ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207006)
 * [@xprt007](https://wordpress.org/support/users/xprt007/): It’s actually just 
   as easy to do with WP Super Cache as with Hyper Cache as you mentioned. On the“
   Advanced” Tab, Look for this setting: “Add here strings (not a filename) that
   forces a page not to be cached. For example, if your URLs include year and you
   dont want to cache last year posts, it’s enough to specify the year, i.e. ’/2004/’.
   WP-Cache will search if that string is part of the URI and if so, it will not
   cache that page.” In that box, enter the unique strings (part of the URL) that
   identify the page you want to not cache. Easy…Click “Save Strings” and you’re
   done.
 *  Thread Starter [xprt007](https://wordpress.org/support/users/xprt007/)
 * (@xprt007)
 * [11 years ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207009)
 * Hi
 * Thank you **both** for the solutions. I ended up first trying saving the url 
   string component similar to /abcd/ and since it worked right away, I just left
   it at that.
 * Once again, many thanks & kind regards.
 *  [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [11 years ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207010)
 * Right on! Glad things are working for you now. 🙂
 *  [andreaguerra80](https://wordpress.org/support/users/andreaguerra80/)
 * (@andreaguerra80)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207095)
 * Hello guys,
    I apologize for my english.
 * I on this site [http://www.ionoleggioauto.com](http://www.ionoleggioauto.com)
   
   2 form with CF7 and super cache plugin bothers me.
 * I noticed that if on the reCaptcha is not working out the form and gives me the
   orange error message, if I remove the reCaptcha form from it all works well.
 * I tried to Apiro the link so [http://ionoleggioauto.com/contatti/](http://ionoleggioauto.com/contatti/)??
   donotcachepage=secret key but nothing to do does not work.
 * I have the site in production and to avoid spam I absolutely have to put as soon
   as possible reCapctha and operate all right soon.
    Can you help please?
 *  [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207096)
 * Hi andreaguerra80,
 * If you can’t get the page to work right using the page exclusions, you may want
   to try a different anti-spam plugin, such as WP-SpamShield. (Full disclosure:
   I’m the developer.) It works perfectly with WP Super Cache and CF7, and no CAPTCHAs.
   Everything is invisible.
 * One tip though…whatever plugin you use, when you make changes to your site, whether
   adding a plugin or changing it’s settings, make sure you clear the cache in WP
   Super Cache, and then clear your browser cache, otherwise the changes may not
   show up.
 * – Scott
 *  [andreaguerra80](https://wordpress.org/support/users/andreaguerra80/)
 * (@andreaguerra80)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207097)
 * Thanks for suggesting your plugin but I have to run reCaptcha for obvious reasons.
 *  [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207098)
 * No worries. 🙂 Just curious…what “obvious reasons”?
 *  [andreaguerra80](https://wordpress.org/support/users/andreaguerra80/)
 * (@andreaguerra80)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207099)
 * I need to be present the Captcha.
 *  [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207100)
 * I guess what I was asking, is why specifically a CAPTCHA? No worries.
 *  [andreaguerra80](https://wordpress.org/support/users/andreaguerra80/)
 * (@andreaguerra80)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207101)
 * Looking good on Flamingo plugin support for contact form, I realized that even
   if the site by mistake when you press on submit, however the mails arrive but
   I find them in the spam folder

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

The topic ‘Excluding specific pages & posts from caching’ is closed to new replies.

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

 * 11 replies
 * 4 participants
 * Last reply from: [andreaguerra80](https://wordpress.org/support/users/andreaguerra80/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/excluding-specific-pages-posts-from-caching/#post-6207101)
 * Status: not resolved