Cache is incomplete, cleared too frequently or randomly
Sometimes, you might notice the cache is being cleared randomly, without a clear explanation. Some symptoms of this could be: The cache folder is incomplete. There is a random number of cached pages. You experience a sudden slowness of some…
Cache Lifespan
The Cache Lifespan feature in the Advanced Rules tab will set the maximum age a cached page can be.How does it work? WP Rocket will check the cache files' creation every hour. If at any of those hourly checks, WP Rocket detects…
Caching query strings
WP Rocket does not cache pages with query strings by default, although there are some very specific exceptions (see below). A query string is where you have a URL that contains a question mark followed by a parameter and a…
Caching the search page results
By default WP Rocket does not cache results of WordPress’ search functionality. In order to enable caching for search results, install the following helper plugin: 📥 Download (.zip): WP Rocket | Cache Search Results Developers: You can find the code…
CDN not working, files not sent to CDN
If, after setting a CNAME in WP Rocket > Content Delivery > Other CDN, you see that your files are not being served from your CDN, please check the following. URL settings In your WordPress dashboard, go to Settings → General…
Change Load CSS Asynchronously sample URLs
The Critical Path CSS is generated by WP Rocket for the homepage and each post type and taxonomy archive page. We select the last post for each type of content. The last post may not be accessible in some cases,…
Choose YouTube preview image resolution
If you are using the LazyLoad sub-option Replace YouTube iframe with preview image, you can specify the resolution of the preview thumbnail using the helper plugin available in this article. Heads up! You need to modify the plugin’s PHP file first,…
Chrome native lazyload
Chrome 76 introduced native lazy-load. This means that lazy-loading can be done by the browser itself instead of a plugin. At the moment, Chrome's implementation of native lazy-load is very conservative. The purpose of lazy-load is to only load images…
Clear cache notice when enabling/disabling plugins
If you've enabled or disabled a plugin you should see an admin notice coming from WP Rocket as shown below: WP Rocket: One or more plugins have been enabled or disabled, clear the cache if they affect the front end of…