How to exclude content from popular free caching plugins in WordPress
Caching plugins are an easy way to make your pages load faster without wasting time on complicated technical tasks, but they are also a primary source of headaches for developpers out there, as they often make their work more complicated. In some cases, the last resort solution is to exclude a give pageStatic content (e.g., "About Us," "Contact") not part of chr... More from the cache to make sure it will work properly. Here is how to do it in WordPress with the most popular free caching plugins.
Exclude content from WP Super Cache
If you want to exclude a pageStatic content (e.g., "About Us," "Contact") not part of chr... More from WP Super Cache, for example the contact pageStatic content (e.g., "About Us," "Contact") not part of chr... More, here are the steps you should follow:
Go to the WP Super Cache settings pageStatic content (e.g., "About Us," "Contact") not part of chr... More in your WordPress dashboardThe dashboard, or admin panel, is the backend interface wher... More.
Navigate to the Advanced tab in the top menuMenu A collection of links (to pages, categories, or custom ... More of that pageStatic content (e.g., "About Us," "Contact") not part of chr... More
Scroll down to the Rejected URL String section
In the box for rejected URL strings, add the pages you want to exclude from the cache (one per line). In our case, it would be /contact/ with the trailing slash, as we use it.
Click Save
Exclude content from Cache Enabler
Using the Cache EnablerpluginSoftware that adds specific features or functionality to a W... More, here is how you can exclude some pages from the cache. Again, we’ll do it for the ContactpageStatic content (e.g., "About Us," "Contact") not part of chr... More for the example.
Go to Settings > Cache Enabler
Scroll down to Cache Exclusions
Chose how you want to exclude your postDynamic, time-based content (e.g., blog entries) displayed i... More, in this example I used the ID of the contact pageStatic content (e.g., "About Us," "Contact") not part of chr... More, which is the easiest. You can also regex for pageStatic content (e.g., "About Us," "Contact") not part of chr... More path or query strings, but it’s more advanced.
Go to Performance > PageStatic content (e.g., "About Us," "Contact") not part of chr... More Cache
Scroll down to the Never cache the following pages section.
Enter the pageStatic content (e.g., "About Us," "Contact") not part of chr... More you don’t want to be cached, for example /contact/. This supports regular expressions and is followed by several useful sections to exclude by categoryA broad method of grouping related posts. Categories are hie... More, tagA non-hierarchical keyword used to describe specific details... More, author, or use of a specific custom field use.
Exclude content from WP Fastest Cache
WP Fastest Cache is also pretty straightforward for cache exclusions, here is how to do it:
In the WordPress dashboardThe dashboard, or admin panel, is the backend interface wher... More, go to the WP Fastest Cache menuMenu A collection of links (to pages, categories, or custom ... More item.
Navigate to the Exclude tab.
Add a new rule to exlude pages, the easiest is to use “Contains” and include text that allows to identify the pageStatic content (e.g., "About Us," "Contact") not part of chr... More or pages you want to exclude.