Common caching issues #
Authorization and privacy
Caching may influence authorization features such as the Login, Register, Password Reset pages and make them broken or unsecure.
Pages Account and User (a profile page) contain private information. This information may be seen for other members if the page is cached.
The Members page contains a member directory that uses a secure request to get members. This request may return an error if the page is cached.
Content restriction and redirects
The cache can save a page for one user and then display a saved page for other users. That's why content restriction and redirects may work wrong on cached pages. Please disable caching for pages that use the content restriction feature.
Using multiple caching plugins is a bad practice. All caching plugins are unsafe and may break layout or functionality. Using multiple caching increases the risk of error many times. Please select one caching plugin you want to use and deactivate other caching plugins.
Some hosting providers have a built-in caching tool on the server-side. In this case, you have to contact hosting support and ask them to exclude certain pages from caching.
How to disable page caching #
Please disable caching for pages Login, Register, Password Reset, Account, User. Disable caching for the page Members if it works wrong on your site.
The way to add exceptions depends on the caching plugin or tool you use.
Use the setting "Never Cache URL(s)" on wp-admin > Settings > Breeze > Advanced Options to exclude pages. Read the Breeze documentation for details.
Use the Cloudflare Page Rules to disable caching for certain pages. To view page rules, log in to the Cloudflare dashboard. Select the domain where you want to edit your page rule and click the Rules app. In the Page Rules tab, locate the rule to edit.
You can use the asterisk (*) in any URL segment to match certain patterns.
Recommended settings for pages excluded from cache:
- Cache Level: BYPASS
- Origin Cache Control: no-cache, no-store, must-revalidate
- Rocket Loader: OFF
Use the setting "Exclusions - URL Strings" on wp-admin > Hummingbird > Caching to exclude pages.
Use the setting "Do Not Cache URIs" on wp-admin > LiteSpeed Cache > Cache > Excludes to exclude pages. Read the article Cache for details.
Use the setting "Excluding URLs" on wp-admin > SG Optimizer > SuperCacher Settings to exclude pages. Read the article SuperCacher Controls for details.
Contact your hosting provider and ask to exclude pages. Read the article Getting Started with Varnish for details.
W3 Total Cache
Use the setting "Never cache the following pages" on wp-admin > Performance > Page Cache to exclude pages. See FAQ.
WP Fastest Cache
Use the setting "Exclude Pages" on wp-admin > WP Fastest Cache > Exclude to exclude pages. See examples here.
Use the setting "URLs to exclude from caching" on wp-admin > WP-Optimize > Settings > Cache > Advanced settings to exclude pages. Read the Advanced settings – exclude URLs for details.
Use the setting "Never Cache URL(s)" on wp-admin > Settings > WP Rocket > Advanced Rules to exclude pages. Read the article Exclude Pages from the Cache for details.
WP Super Cache
Use settings on wp-admin > Settings > WP Super Cache > Advanced to exclude pages.
How to disable image caching #
The Jetpack site accelerator copies images to domains i0.wp.com, i1.wp.com, i2.wp.com or i3.wp.com and cache them, then replaces original images. This feature influence profile photos, please disable it. Go to wp-admin > Jetpack > Settings > Performance and turn off the setting "Speed up image load times".