Exclude Pages from the Cache

If you don’t want some pages to be cached, you can use Exclude Page feature. There are two ways to exclude specific pages from being cached: “Exclude Tab” and “HTML Comment”

1. Exclude Tab

You can see the excluded pages on the “exclude” tab.

new-exclude-page

If you want to add a new rule, you should push on the “Add New Rule” button.

Add New Rule Button

The system is case insensitive.

There are 4 ways to use this feature. Home Page, Start with, Contain and Exact.

exclude-page-home

Examples:

If you want to exclude the home page, you need to select “Home Page”.

exclude-page-home

If you want to exclude all the pages which start “page”, you need to use “start with”.

http://www.wpfastestcache.com/page/1
http://www.wpfastestcache.com/page/2
http://www.wpfastestcache.com/page/3

exclude-page-startwith

If you want to exclude all the pages which contain “cart”, you need to select “contain”.

http://www.wpfastestcache.com/my-cart-page.html
http://www.wpfastestcache.com/your-cart-page.html
http://www.wpfastestcache.com/our-cart-page.html

exclude-page-contains

If you want to exclude only “wp-login.php, sitemap.xml” , you need to select “Is Equal To”.

http://www.wpfastestcache.com/wp-login.php
http://www.wpfastestcache.com/sitemap.xml

exclude-page-is-equal-to

2. HTML Comment

You can exclude a page manually by putting <!–- [wpfcNOT] -–> into the html source as well.

3. By Hook

You can call the following function in a theme or a plugin file to exclude current page.