• Hi

    I have read 2, 3 articles on excluding some pages from caching, such as https://www.ads-software.com/support/topic/how-can-i-exclude-a-page-from-caching & https://codex.www.ads-software.com/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://www.ads-software.com/plugins/wp-super-cache/

Viewing 11 replies - 1 through 11 (of 11 total)
  • 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 “https://<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

    @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

    (@xprt007)

    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.

    Right on! Glad things are working for you now. ??

    Hello guys,
    I apologize for my english.

    I on this site https://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 https://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?

    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

    Thanks for suggesting your plugin but I have to run reCaptcha for obvious reasons.

    No worries. ?? Just curious…what “obvious reasons”?

    I need to be present the Captcha.

    I guess what I was asking, is why specifically a CAPTCHA? No worries.

    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.