The plugin WP-Rocket is now used on more than 4 million WordPress sites, and it still delivers some of the best speed gains you can get from a caching plugin. It’s easy to use and includes a few features you won’t find in most alternatives.
In this guide I’ll walk you through the less obvious options in WP-Rocket. If you make it to the end, there’s a good chance you’ll pick up at least one setting you haven’t used before.
If you’re a developer looking for PHP filters, WP-CLI commands, and deployment scripts, check out my WP Rocket for Developers post.
What is Caching?
Caching creates and stores static versions of your website’s pages (HTML, CSS, and JavaScript) on the server. This means visitors receive pre-generated content rather than dynamic pages that require PHP communication with the server or database.
By reducing server interactions and data transfer, caching significantly speeds up page loading times, enhancing user experience.
WP-Rocket Plugin Potentially Performs the Following Actions:
- Creates a static version of every page on your WordPress site and stores them on the server.
- Enables the browser to use its internal cache.
- Delays the loading of JavaScript.
- Enables GZIP compression.
- Optimizes Google Fonts.
- Minifies JavaScript and CSS files.
- Delays the loading of images on your site, and more…
Let’s go through the settings screens under Settings > WP-Rocket.
Read more about What is Cache and What Types of Cache Exist?
The New Settings Layout
WP Rocket 3.24 redesigned the settings screen. The old row of tabs is gone, and the settings now sit in a menu on the left, grouped by what they do:
- Dashboard – your Rocket Insights score and recommendations.
- Rocket Insights – performance tests for the pages you choose.
- Content Delivery – RocketCDN or your own CDN.
- Cache – Preload and Cache Rules.
- Page Optimization – Image & Media, and JavaScript & CSS.
- Backend – Database and Heartbeat.
- Tools – Tools and Add-ons.
- Help and Account – support links, tutorials, license and billing.
If you’re coming from an older version: File Optimization is now JavaScript & CSS, Media is now Image & Media, Advanced Rules is now Cache Rules, and the CDN tab is now Content Delivery.
The screenshots in this guide show the settings I recommend, with example values in the text fields. Replace the examples with your own URLs and file names.
Dashboard

The Dashboard used to show mostly account and license details. Now it shows your Rocket Insights score, the Core Web Vitals behind it (LCP, TBT, CLS and TTFB), and a list of recommendations. Each recommendation has an Activate link that turns the matching option on.
The score only appears after you add at least one page. Click Add Homepage to start with your homepage.
The Clear Cache button is no longer on this screen. You’ll find it in the WP Rocket menu in the WordPress admin toolbar. On a multilingual site, that menu lets you clear the cache for all languages or for one language at a time.
Rocket Insights

Introduced in WP-Rocket 3.20, Rocket Insights is a GTmetrix-powered performance monitoring feature that lets you track, troubleshoot, and optimize your site’s top pages from the WordPress dashboard.
Add the pages that matter most, such as your homepage and your main landing pages. Rocket Insights tests each one and shows its score and Core Web Vitals.
Since WP Rocket 3.21, the Rocket Insights premium plan has been free for all WP Rocket users. It includes Performance Monitoring, which automatically re-tests your pages every day, week or month so you can spot a drop before it hurts your rankings.
Content Delivery

This screen used to be called CDN. It now has two modes, and you pick one with the tabs at the top:
- RocketCDN – WP Rocket’s own CDN. Since version 3.22, WP Rocket users have had access to a free tier that covers a limited number of pages. Add your most important page and RocketCDN serves it from servers around the world.
- Other CDN – for a CDN you already use, such as BunnyCDN, KeyCDN or Amazon CloudFront. Turn on Your CDN, click Add CNAME, and enter the CNAME your CDN provider gave you.
In the screenshot, cdn.example.com serves all files. You can also limit a CNAME to images, CSS or JavaScript.
Under Exclude Files from CDN, list any files that must load from your own server. Web fonts are a common example. Many CDNs don’t send the CORS headers that fonts need. Without those headers, the browser refuses to load the fonts.
If you use Cloudflare, don’t add it here. Cloudflare isn’t a CNAME-based CDN, and the WP Rocket documentation warns that entering a Cloudflare CNAME on this screen will break your site. Use the Cloudflare add-on instead (see Add-Ons below).
I won’t go deeper into each provider here. For the details, check the WP-Rocket documentation.
Preload
1. Preload Cache
When preloading is on, WP-Rocket reads your site’s sitemap and builds the cache for every URL in it. That way, even the first visitor to a page gets the cached version. WP-Rocket automatically rebuilds the cache when the cache lifespan expires.
WP-Rocket detects the sitemap on its own if you use a plugin like WordPress Yoast SEO, Rank Math or All in One SEO.
Exclude URLs
Here you can list pages that WP-Rocket shouldn’t preload. They still get cached when someone visits them, just not in advance.
In the screenshot I excluded tag and author archives with /tag/(.*) and /author/(.*). On a large site, these pages can add thousands of URLs to the preload queue for very little traffic.
2. Preload Links
When “Preload Links” is enabled, hovering over an internal link starts loading the target page before the click happens. When the user actually clicks, the page usually opens much faster.
Test this carefully after enabling it. In some cases the target page may not load properly after the click.
3. Preconnect to External Domains (Automatic)
This option used to be called “Prefetch DNS Requests”, and you had to add each external domain by hand. It’s no longer in the settings screen because WP-Rocket now handles it automatically.
If your site loads content from other domains, such as fonts from Google or videos from YouTube, WP-Rocket detects those domains and adds the right hints for them. You can get more information in the article about improving loading time of Google Fonts using Preconnect.
Cache Rules
This screen used to be called Advanced Rules. It now sits under Cache in the menu, and it also holds Cache Lifespan and User Cache, which used to live on other tabs.
1. Cache Lifespan
This setting controls how often WP-Rocket clears the cached files on your server. The default is 10 hours. If you don’t update your content or code often, you can safely set a longer interval.
If you want the cache to be rebuilt automatically after it’s cleared, turn on Preload Cache (see the Preload section above).
2. Never Cache URL(s)
Here you list pages that should never be cached, one per line, without the domain. In the screenshot, /members/(.*) keeps the whole members area out of the cache, while /custom-checkout/ excludes just the checkout page.
WP-Rocket already excludes the cart and checkout pages of WooCommerce and other well-known stores. If your store isn’t recognized, add those pages here. See more information in the plugin’s documentation.
3. Never Cache Cookies
Here you add the names of cookies, one per line. Visitors who have one of these cookies in their browser get the live page instead of the cached one.
In the screenshot, my_store_cart stands for a cart cookie from a store plugin that WP-Rocket doesn’t recognize. Without it, a visitor could see someone else’s cart contents in a cached page.
4. Never Cache User Agent(s)
This lets you skip the cache for specific browsers, devices or bots. There’s usually no need to change it, which is why it’s empty in the screenshot. The grey text is only a format example.
5. Always Purge URL(s)
WP-Rocket already clears the cache of your homepage, categories and tags when you publish or update a post. Use this field for other pages that list your content.
The site in the screenshot has a static homepage, so /blog/ is its blog page. Without this line, new posts wouldn’t show up on /blog/ until its cache expires.
6. Cache Query String(s)
By default, WP-Rocket doesn’t cache URLs with query strings at the end. For example, if the URL looks like this:
example.com/page/?country=italy
and you still want this page cached, add the parameter country, as in the screenshot.
There are exceptions, such as using UTM Parameters. If you use Google Analytics, you probably have URLs like this:
example.com/page/?utm_source=this&utm_campaign=that&utm_medium=theother
WP-Rocket ignores the UTM parameters and other tracking parameters like gclid and fbclid. It serves the regular cached page, so you don’t need to add those parameters here.
7. User Cache
When this option is on, WP-Rocket creates a separate cache for each logged-in user. It’s useful for membership sites and other sites that show different content to each logged-in user.
In most cases, this option should stay off, as in the screenshot.
8. Mobile Cache (Automatic)
Mobile Cache has no setting on this screen. It’s enabled by default, and WP-Rocket creates a separate cache for mobile visitors automatically. If it was ever disabled, WP-Rocket shows a one-time button to enable it again.
If you need to disable mobile-specific cache behavior, you will need a helper plugin or a code-based solution. The following filters disable both Mobile Cache and the separate mobile cache files:
add_filter( 'pre_get_rocket_option_cache_mobile', '__return_zero' );
add_filter( 'pre_get_rocket_option_do_caching_mobile_files', '__return_zero' );
A separate mobile cache matters when your theme delivers different content to mobile users, for example with the wp_is_mobile function. In most cases, I recommend leaving the default behavior in place.
Image & Media
This screen used to be called Media. It covers images, iframes, videos and fonts.
1. LazyLoad
LazyLoad delays images, iframes, and videos until the user scrolls near them. That cuts down initial requests and usually helps a lot on image-heavy sites.
I recommend turning on all three options, as in the screenshot. When you enable LazyLoad for iframes and videos, also turn on Replace YouTube iframe with preview image. Visitors see a lightweight image, and the full YouTube player loads only when they click play. WP Rocket’s LazyLoad for CSS background images doesn’t need any extra setup. Learn more.
Don’t lazy load images at the top of the page, like your logo or a hero image. WP Rocket automatically excludes above-the-fold images (see Optimize Critical Images below). If it misses one, add part of the image’s file name or CSS class under Excluded images or iframes. In the screenshot, I excluded site-logo.svg and hero-image.webp.
2. Image Dimensions
When a browser displays a web page, it loads HTML first and waits for all images to load. If image dimensions are defined, browsers use this information to allocate space for images correctly.
If image dimensions are not defined, the browser will adjust the content layout to accommodate images after downloading them from the server.
This layout shift is known as Layout Shift (CLS) and negatively impacts user experience. It’s one of the key metrics in Core Web Vitals.
This option adds dimensions to images that are missing them. Check the result afterward and see whether it improves your scores in the usual performance tools.
It’s worth noting that it’s often better to define image dimensions in code based on the specific size in which the image is displayed.
3. Fonts
This block has two options, and I recommend turning on both:
- Preload fonts – WP Rocket detects the fonts used above the fold and preloads them. That reduces layout shifts and the flash of unstyled text, and helps when your LCP element is text.
- Self-host Google Fonts – introduced in WP Rocket 3.18. It downloads the Google Fonts your site uses and serves them from your own server. That saves connections to external servers, can help Core Web Vitals, and makes GDPR compliance a bit easier.
You can also self-host fonts manually if you want more control by following this guide I wrote about self-hosting Google Fonts.
4. Optimize Critical Images (Automatic)
Since version 3.16, WP Rocket has automatically detected and optimized the LCP image and other images above the fold. The feature is on by default and runs asynchronously using a lightweight beacon script (wpr-beacon.min.js). You don’t need to configure anything, and you won’t find a setting for it on this screen.
For each page, the plugin:
- Sets
fetchpriority="high"on the LCP image so the browser downloads it first. - Adds a
<link rel="preload">tag for the LCP image (including responsiveimagesrcsetandimagesizesattributes when applicable). - Excludes above-the-fold images from lazy loading automatically.
Mobile and desktop are processed independently, so the optimization is accurate for each device type.
For best results, combine this feature with the Remove Unused CSS option. Learn more in the WP Rocket documentation.
5. Automatic Lazy Rendering (Automatic)
Introduced in WP Rocket 3.17, Automatic Lazy Rendering uses the CSS content-visibility property to delay rendering elements that sit far below the fold. Instead of rendering the whole page at once, the browser renders only what the visitor can see and leaves the rest for later.
This can have a direct impact on INP (Interaction to Next Paint), one of the three Core Web Vitals metrics, because it reduces main-thread work during the initial load. On content-heavy pages, it can also help LCP and FCP.
The feature is fully automatic, with no settings to configure. WP Rocket detects elements more than 1800px away from the viewport and applies the optimization separately for mobile and desktop.
If a specific element is causing layout issues due to lazy rendering, developers can exclude it using the
rocket_lrc_exclusionsfilter. See the documentation.
JavaScript & CSS
This screen used to be called File Optimization. It handles your site’s JavaScript and CSS files, and these settings can make a real difference to how quickly your WordPress site loads.
Please note that depending on your site’s template and how it’s developed, changing these settings may cause visual issues or JavaScript errors. Turn on one option at a time and check your site after each one.
1. JavaScript Files
A. Minify JavaScript Files
This option removes whitespace and comments from your JavaScript files to make them smaller. Enable it, then check your browser’s Dev Tools for new errors.
B. Combine JavaScript Files
This option merges your JavaScript files into fewer files. It stays greyed out until you enable Minify JavaScript files, and I recommend leaving it off. As we explained in the post Optimizations in the HTTP/2 Era, combining files doesn’t help on sites that use HTTP/2, which is most sites today.
C. Load JavaScript Deferred
When the browser comes across a script, it pauses to download and run it before showing the rest of the page. This option adds the defer attribute to your scripts, so they run only after the browser finishes parsing the HTML.
I recommend turning this on. Once you do, go through your site’s pages and check Dev Tools for any new errors.
If a script breaks when it’s deferred, add it under Excluded JavaScript Files. The screenshot shows both formats: a full path to one file, and a (.*) wildcard that matches every file in a plugin folder. Need more details? Check out our guide on excluding JavaScript files from WP Rocket’s Load Deferred.
D. Delay JavaScript Execution
Delaying JavaScript can significantly improve your Core Web Vitals scores. With this option on, scripts don’t load at all until the visitor interacts with the page by scrolling, clicking, moving the mouse, or touching the screen on mobile.
When you turn it on, two more settings appear:
- One-click exclusions – lists of common plugins, themes and services, such as analytics, ad networks and payment processors. Select one if its elements need to work right away.
- Excluded JavaScript Files – use this for anything else that needs to run right away. Take a cookie consent banner: if you delay its script, the banner won’t appear until after the first scroll. In the screenshot,
/wp-content/plugins/cookie-law-info/(.*)lets the CookieYes banner load normally.
If something breaks and you can’t pin down why, Safe Mode for Delay JavaScript Execution tells WP Rocket to leave your site’s own scripts alone and delay only third-party scripts. You can find more information about this option in the WP-Rocket documentation.
2. CSS Files
A. Minify CSS Files
This option minifies your site’s CSS files. That reduces file size and can help pages load faster. Enable it, then check that nothing broke visually.
Here’s a comprehensive post describing 12 proven ways to optimize CSS for better performance.
B. Optimize CSS Delivery
Before a browser can render the content on the screen, it needs to process CSS files. As a result, the browser delays rendering until it downloads and processes all external CSS files on the site.
When you turn on Optimize CSS delivery, you choose one of two methods:
- Remove Unused CSS – the recommended method, selected in the screenshot. It removes all CSS that isn’t used on each individual page and keeps only the styles that page needs. The work runs in the background, so it won’t slow down your site.
- Load CSS Asynchronously – generates Critical CSS for the top part of each page and inlines it, then loads the rest of the CSS without blocking. WP-Rocket generates the critical CSS automatically. If it fails, you can create it with a tool like this one and paste it into the Fallback critical CSS field.
If some styles go missing after you enable Remove Unused CSS, for example in a menu that only opens on click, add their file, class or ID to the CSS safelist.
Both methods keep CSS from blocking the first render. That helps the LCP (Largest Contentful Paint) metric known from Core Web Vitals. So yes, Optimize CSS delivery is worth enabling if you’re comfortable fixing visual issues when they show up. If not, skip it.
Database
In this section, you can optimize and clean the database and set the frequency at which it will be automatically performed if desired. Make sure you back up the database before performing any action in this section!
1. Post Cleanup – Revisions, Drafts and Trash
In this section, you can delete old post revisions, auto drafts, and posts and pages in the trash.
2. Comments Cleanup
You can delete spam comments and deleted comments from the database.
3. Transients Cleanup
Transients store data in the database when it would take longer to retrieve it again, like the number of shares for a particular post. Some transients stick around in the database even after they expire. You can delete them here. WordPress and your plugins recreate the ones they still need.
4. Database Cleanup
Optimize Tables reduces the overhead that builds up in your database tables as rows change or get deleted.
5. Automatic Cleanup
Allows you to configure automatic deletion of the items marked in the previous sections. In the screenshot it runs weekly, which is enough for most sites.
Heartbeat
The Heartbeat API in WordPress is often an overlooked source of extra server load and slower performance.

WP Rocket lets you reduce or disable Heartbeat requests separately in the backend, the post editor and the frontend. The settings in the screenshot are the ones I recommend for most sites:
- Backend: Reduce activity. If you disable Heartbeat completely here, the Site Health tool can’t load its results.
- Post editor: Reduce activity. This keeps autosave and post locking working.
- Frontend: Disable, unless a plugin relies on Heartbeat on the frontend.
For more details about the Heartbeat API and how to configure it effectively using WP Rocket, check out my guide on Optimizing Heartbeat API Settings with WP Rocket.
Tools
- MCP Server – connect an AI tool such as Claude to WP Rocket. Read more in my post about the WP Rocket MCP server.
- Export settings and Import settings – copy your WP Rocket configuration to another site. Since version 3.23.1, WP Rocket also backs up its settings automatically on every plugin update.
- Rollback – reinstall the previous version if an update causes problems.
- Update Inclusion and Exclusion Lists – download the latest compatibility lists right away instead of waiting for the weekly update.
Add-Ons

In this tab, you will find several additional features of WP-Rocket. User Cache is no longer here: it moved to Cache Rules (see above).
1. Varnish
Varnish is a server-level cache that some hosting companies run in front of your site. When it’s on, WP-Rocket needs to clear it whenever it clears its own cache.
On many hosts, WP-Rocket detects Varnish and takes care of that for you. The site in the screenshot runs on Cloudways, and WP-Rocket shows that Varnish auto-purge is already on. If you’re not sure whether your server uses Varnish, it probably doesn’t, and you can leave this setting alone.
2. WebP Compatibility
When this add-on is on, WP-Rocket creates separate cache files for browsers that support WebP images. Turn it on if you serve WebP images, for example with an image optimization plugin.
3. Cloudflare
This option adds basic integration between your Cloudflare account and WP-Rocket. For example, it lets you clear the Cloudflare cache directly from WP-Rocket’s settings. I won’t go deeper into it here.
Since version 3.20.2, WP Rocket’s Cache Lifespan also automatically purges the Cloudflare APO cache when it expires. If you’re using Cloudflare APO, you no longer need to worry about stale APO cache after WP Rocket regenerates its own cache.
4. Sucuri
If you use the Sucuri firewall, this add-on clears the Sucuri cache whenever WP-Rocket clears its own cache. You’ll need your Sucuri API key.
5. Google Tracking and Meta Pixel (Removed)
Older versions of WP-Rocket had add-ons that hosted the Google Analytics and Meta Pixel scripts on your own server. Both have been removed.
Today, the Delay JavaScript Execution option handles these scripts better: it doesn’t load them until the visitor interacts with the page. Check out the following post if you are interested in loading Analytics from your own server.
Account
The Account screen shows your WP Rocket license, its expiry date and your RocketCDN subscription. It’s also where you can opt in to sharing anonymous usage data with the WP Rocket team.
Additional Information
WP-Rocket lets you enable or disable specific options on individual pages and posts. Those per-page settings take priority over the plugin’s global settings.
If you added a page to “Never Cache URLs”, that page won’t be included in WP-Rocket’s cache. In that case, these per-page options won’t matter.
I don’t see this very often in other caching plugins, and in the right situation it can save you quite a bit of troubleshooting.
FAQs
Common questions about WP-Rocket:
In Summary
WP-Rocket is still one of the strongest caching plugins you can use on a WordPress site. I won’t call it the best in every situation, because that depends on the site and I obviously haven’t tested every setup on earth.
If you’re wondering what happens when you publish new content on a cached site, the short version is simple: WP-Rocket refreshes the cached version when content changes, so visitors get the updated page rather than an old one.
You are welcome to share which plugin you are using and your experience with WP-Rocket in the comments below. 🙂


Hi Roee,
The problem with wp rocket and woocommerce checkout page is that because they exclude the caching (and rightly so) all the other features are disabled for the checkout as well, like delaying and differing js and modification.
Do you know how one can address that?