How to Exclude Specific Pages from W3 Total Cache

Exclude from Cache W3 Total Cache

If you need to exclude specific pages from being cached while using W3 Total Cache you simply add/register the pages.

 

w3-total-cache-menu-selection

  • goto Performance > Page Cache
  • scroll to Advanced > Never cache the following pages

 

You then add the entries as so:

/page-name/
/another-page-name/

exclude-from-cache-input-for-w3tc

 

It also supports regular expressions:

s3-total-cache-regular-expressions

That’s all you really need to do to skip caching and exclude individual pages from cache if you’re using W3 Total Cache.

References

Post written by Ed Reckers

Founder and lead web development consultant at Red Bridge Internet : San Francisco WordPress Developers and Consultants.

4 Responses to “How to Exclude Specific Pages from W3 Total Cache”

  1. Jose

    Thanks for your help, but i wonder how is posible to :
    Don’t cache the general /page/
    But I want to cache the subpages like for example
    /page/subpage1/
    /page/subpage2/

    Is it Posible?

    Thanks

  2. rocketgirl

    I’m really struggling to find consensus on the correct syntax for entering pages into the ‘do not cache’ section. I have found many different posts that all lay the page and directory names out differently.

    should it be

    /page-name/
    /product-category/*

    or
    /page-name
    or
    page-name/

    i’m trying to exclude a couple of pages but also all of my products and product categories and it’s just not working for me. It seems each time i enter the above, the category then becomes inaccessible. I’m using woocommerce and the basic shop, account and cart pages are taken care of by the plugin, but i need to specify the above as i have a currency widget that works on location.

    Any help much appreciated.

  3. Ashish

    I want to Disable CDN on the single folder. eg:- wp-content/uploads/gravity_forms/* . How can i add this ? could you please help me to do this,

  4. Adarsh Mehta

    Thanks a ton m8! I was tired of trying various settings and was still not able to figure out how to disable cache for my random funny puns and jokes generator page. I could not find this information in W3 Total Cache’s FAQ also (or maybe I missed it). In any case, this article really helped me out. I love you for this. 😀

Leave a Reply