Optimization Features

WP Rocket features info and troubleshooting.

Clear WP Rocket cache

WP Rocket automatically clears the cache in most common scenarios. However, there are a few ways to do to clear the cache if you need to do it manually. Clear cache on whole site Go to Settings → WP Rocket → Dashboard tab and press the Clear…

Cloudflare – CDN CNAME

Cloudflare is not a typical CDN but is actually a reverse proxy, all of your content will still load from your regular domain, yoursite.com.  With Cloudflare there is no specific CDN CNAME to serve the static assets of your website. …

Cloudflare – Recommended settings

You don't have to make any changes in the Cloudflare settings when using WP Rocket. If you want to be sure that there won't be any issues, you can either turn on the Optimal Settings option on the WP Rocket…

Common issues with LazyLoad

Although we do our best to make our features as compatible as possible with other plugins and themes, it's impossible to ensure 100% compatibility. Here are some known conflicts with LazyLoad: Grid layouts that use fixed positioning/fixed widths e.g. some…

Conditionally Disable Remove Unused CSS

Sometimes you need to disable the Remove Unused CSS feature for groups of pages, based on their URLs slugs. For example, if you want to disable the optimization on all product pages which are using the following structure: https://www.example.com/products/wp-rocket-t-shirt/ You can use the string…

Control WordPress Heartbeat API

The WordPress Heartbeat API provides a connection for real-time data transfer and syncing between the server and the browser. Examples of where the Heartbeat API is involved include: Autosave and revisions in the post editor Notifications on WordPress admin dashboard…

Customize access to options according to user roles

By default, you must be an Administrator to have access to any and all of WP Rocket's settings and options.  But you can customize this, and grant other user roles access to some or all of WP Rocket's options. There…

Customize Preload sitemaps and priority

By default, the Preload feature scans your sitemaps to detect all the URLs to preload, and as each one is preloaded, it’s added to the wpr_rocket_cache table in your database. The feature also listens to user traffic and adds visited…