The cache rules tab lets you control which pages and visitors skip the cache, which extra pages get cleared when you publish, and which query strings get their own cached copy.
Excluded URLs
Excluded URLs are pages you never want cached, such as membership areas, dashboards, or pages with content that changes for each visitor. Add one path per line, for example:
/members/
/campaign/
Matching is partial and not case-sensitive, so a request is skipped whenever its path contains the line. For example, /members/ also excludes /members/profile/. WooCommerce cart, checkout, and account pages are already excluded automatically, so you don’t need to add them. If Cloudflare Edge Cache is on, these paths are also left out of the Cloudflare Cache Rule, so they’re bypassed at the edge too.
Below is a list of URLs automatically excluded by Perfmatters. You can also utilize our perfmatters_cache_bypass filter.
/cart/
/checkout/
/my-account/
Bypass cookies
Bypass Cookies skip the cache for any visitor who has a matching cookie. This is useful for plugins that personalize pages, like memberships, wishlists, or geolocation. Add one cookie name or prefix per line, for example:
membership_
wishlist_
A request is skipped when any cookie name starts with the line, so wishlist_ matches wishlist_123 or wishlist_session. Perfmatters already bypasses the cache for logged-in users, commenters, password-protected posts, and WooCommerce cart and session cookies. If Cloudflare Edge Cache is on, these cookies are also added to the Cloudflare Cache Rule bypass.
Below is a list of cookies already automatically bypassed in Perfmatters. You can also utilize our perfmatters_cache_bypass_cookies filter.
wordpress_logged_in_
wp-postpass_
comment_author_
woocommerce_items_in_cart
woocommerce_cart_hash
wp_woocommerce_session_
Always purge URLs
When you update a post or page, Perfmatters automatically clears that page along with your home page and related archives. Always Purge URLs adds extra pages to that list, such as a custom “recent posts” page, a landing page with a latest-posts block, or anything else that displays your content outside the normal archives. Add one path or full URL per line, for example:
/recent/
/landing/
These pages are purged and then re-warmed every time a post or page is updated. If Cloudflare Edge Cache is on, they’re purged from Cloudflare too.
You can also utilize our perfmatters_cache_purge_urls filter.
Cache query strings
By default, a URL with a query string (like ?orderby=price) skips the cache, since the parameter often changes what’s on the page. Cache query strings lets you list parameters that should be cached instead, with each value stored as its own copy. Add one parameter name per line, for example:
orderby
filter
With orderby added, ?orderby=price and ?orderby=date each get their own cached file. Any parameter you don’t list still skips the cache. Common marketing and tracking parameters, like utm_source, utm_campaign, fbclid, gclid, and _ga, are already ignored and served the normal cached page, so you don’t need to add them.
This option isn’t shown on multisite or when a host page cache is detected.
You can also utilize our perfmatters_cache_query_strings filter.