The Best WP Rocket Settings: What to Turn On, What to Skip and How to Test Each One (2026)

WP Rocket works the moment you activate it, but the biggest gains come from a handful of optional settings. This guide walks through every tab in the order that keeps your site safe while you test.

Don't have WP Rocket yet? See current plans and the refund window.

See WP Rocket Plans

Before You Change Anything

WP Rocket is designed to work safely out of the box. The settings below are the optional extras that make the biggest difference, but they also carry the most risk of breaking a layout. WP Rocket's own documentation recommends a few habits that save a lot of trouble:

  1. Enable one setting at a time. If something breaks, you will know which option caused it.
  2. Test logged out. WP Rocket does not serve cached pages to logged-in users by default, so check your pages in a private or incognito window.
  3. Check your key pages, such as the homepage, a blog post, a product page and checkout.
  4. Be patient with cloud features. Remove Unused CSS and some other optimizations are processed on WP Rocket's servers, so they take a little time to apply.
  5. Export your settings from the Tools tab once you are happy, so you can restore or reuse them.

If you have not installed WP Rocket yet, the WP Rocket review explains plans and pricing.

What WP Rocket Does Automatically

Some optimizations have no settings at all. According to WP Rocket's documentation, these run as soon as the plugin is active:

  • Page caching, including caching for mobile devices
  • Browser caching and GZIP compression
  • Optimize Critical Images, which prioritizes images above the fold
  • Automatic Lazy Rendering, which delays rendering of content further down the page
  • Preconnect to external domains
  • Optimize Google Fonts files
  • Disable WordPress emoji scripts
  • Cross-origin support for web fonts
  • Refresh of WooCommerce cart fragments cache

These options are also switched on by default when you activate the plugin:

Default setting Tab
Minify CSS files File Optimization
Minify JavaScript files File Optimization
Cache Lifespan (10 hours) Advanced Rules
Preload Cache Preload
Preload Links Preload
Heartbeat Control set to Reduce Activity Heartbeat

So a fresh install already does a lot. The rest of this guide is about the optional settings that build on it.

Tab Setting Recommendation
File Optimization Minify CSS and JavaScript Keep on (default) unless your host already minifies
File Optimization Remove Unused CSS Turn on, then test
File Optimization Load CSS Asynchronously Use instead of Remove Unused CSS if that breaks layouts
File Optimization Load JavaScript Deferred Turn on
File Optimization Delay JavaScript Execution Turn on, then test interactive elements
Media LazyLoad for images, CSS backgrounds, iframes and videos Turn on
Media Replace YouTube iframe with preview image Turn on if you embed videos
Media Add missing image dimensions Turn on
Media Self-host Google Fonts Turn on if you use Google Fonts
Media Preload fonts Add only the fonts used above the fold
Preload Preload Cache and Preload Links Keep on (default)
Advanced Rules Never Cache URLs Add private or dynamic pages if needed
Database Cleanup options Run after taking a backup
Heartbeat Control Heartbeat Keep Reduce Activity (default)
CDN RocketCDN or your own CDN Recommended if you have no CDN
Add-ons Cloudflare, Varnish, Sucuri Turn on only if you use those services

Cache and Advanced Rules

Hammer, pliers and tape measure on a wooden table

Page caching and mobile caching run automatically, so there is nothing to switch on. The main cache-related setting is Cache Lifespan in the Advanced Rules tab, which defaults to 10 hours. WP Rocket clears and rebuilds the cache after this interval. If your site changes rarely, the default is fine. If you publish frequently, WP Rocket already clears the cache for affected pages when you update content.

The other Advanced Rules options are for exceptions:

  • Never Cache URLs: pages that should always be built fresh, such as a members' dashboard
  • Never Cache Cookies: cookies that should bypass the cache
  • Never Cache User Agents: specific browsers or bots that should get uncached pages
  • Always Purge URLs: pages to clear whenever you update any content, such as a "latest posts" page
  • Cache Query Strings: URL parameters that should still be cached

WooCommerce cart, checkout and account pages are excluded from caching automatically, so you do not need to add them.

File Optimization

This tab holds the settings with the biggest impact on Core Web Vitals, and the most potential to break things.

CSS Files

  • Minify CSS files is on by default. It removes spaces and comments from CSS files.
  • Remove Unused CSS analyzes each page and keeps only the CSS that page uses. It can shrink CSS dramatically, especially on sites with page builders. WP Rocket's documentation lists it among the recommended settings. If a page looks wrong after enabling it, add the missing selectors or files to the CSS safelist.
  • Load CSS Asynchronously generates critical CSS for the visible part of the page and loads the rest without blocking rendering. Use it as an alternative if Remove Unused CSS causes problems on your theme. You choose one of the two.

JavaScript Files

  • Minify JavaScript files is on by default.
  • Load JavaScript Deferred tells the browser to download scripts without blocking the page, then run them after the HTML is parsed. It is one of the first settings WP Rocket recommends enabling.
  • Delay JavaScript Execution holds back scripts until the visitor interacts with the page. This often gives the largest boost to lab scores, because tracking, chat and ad scripts stop competing with the first render.

Delay JavaScript Execution is the setting most likely to cause visible issues, such as a slider that does not start, a menu that does not open on the first tap or a cookie banner that appears late. WP Rocket provides one-click exclusions for many popular plugins and themes, plus a field for excluding specific scripts. Test menus, sliders, forms, popups and cookie notices after turning it on.

Media

WP Rocket's documentation recommends enabling all the Media options.

  • LazyLoad for images delays offscreen images until the visitor scrolls near them.
  • LazyLoad for CSS background images does the same for background images set in CSS.
  • LazyLoad for iframes and videos delays embeds such as maps and videos.
  • Replace YouTube iframe with preview image shows a lightweight thumbnail until the visitor clicks play, which saves loading the full YouTube player.
  • Add missing image dimensions adds width and height to images that lack them, which helps prevent layout shifts.
  • Self-host Google Fonts downloads Google Fonts to your server, removing a request to Google's servers.
  • Preload fonts tells the browser to fetch specific font files early. Add only fonts used in the visible part of the page, such as your heading and body fonts. Preloading too many fonts can slow things down.

Because Optimize Critical Images runs automatically, images in the first screen are not lazy loaded, which avoids delaying your largest above-the-fold image.

Preload

  • Preload Cache builds cached copies of your pages in the background, so the first visitor after a cache clear does not get a slow, uncached page. It is on by default.
  • Preload Links starts loading a page when a visitor hovers over or touches a link, so the next page appears faster. It is also on by default, and WP Rocket's guide recommends keeping it.

On very large sites or small servers, preloading can add server load. WP Rocket's documentation has a configuration guide for large websites if you see high CPU use.

Database

The Database tab removes clutter that builds up over time:

  • Post revisions, auto drafts and trashed posts
  • Spam and trashed comments
  • Transients
  • Database table optimization
  • Automatic scheduled cleanup

Take a backup first. Database cleanup cannot be undone. If you rely on post revisions to recover old versions, keep revisions or limit them rather than deleting them all.

CDN

The CDN tab, called Content Delivery in recent versions, lets you either use RocketCDN, WP Rocket's own CDN service, or enter your own CDN's address. WP Rocket's best-settings guide recommends enabling RocketCDN if you do not already use a CDN. If you use Cloudflare, use the Cloudflare add-on instead of entering it as a CDN.

Heartbeat

The WordPress Heartbeat API sends regular requests from the browser to the server for features such as autosave and post locking. WP Rocket sets it to Reduce Activity by default, which lowers server load while keeping those features working. You can disable it in specific areas, but reducing it is the safer choice for most sites.

Add-Ons

Turn these on only if you use the matching service:

  • Cloudflare: connects to your Cloudflare account so WP Rocket can clear Cloudflare's cache when your content changes.
  • Varnish: clears a Varnish cache that some hosts run in front of WordPress.
  • Sucuri: clears the Sucuri firewall cache.
  • User Cache: creates separate caches for logged-in users. Useful for membership sites, but it uses more disk space.
  • WebP compatibility: works with image plugins that serve WebP files.

Tools

The Tools tab lets you export and import settings, which is useful for copying a tested configuration to another site, and roll back to a previous WP Rocket version if an update causes problems.

Settings by Site Type

Pegboard wall filled with organized tools
Site type Extra care needed
Blog or content site Usually safe to enable every recommended setting. Test ad and analytics scripts with Delay JavaScript Execution.
WooCommerce store Test cart, checkout, mini-cart and product galleries after each JavaScript change. Keep cart and checkout uncached (automatic).
Membership or course site Consider User Cache. Add member dashboards to Never Cache URLs if they show personalized content.
Page builder site (Elementor, Divi, Thrive) Remove Unused CSS often gives large gains. Test animations, sliders and popups after enabling JavaScript delay.
Site on a host with its own cache Check the host's guidance first. Some hosts disable WP Rocket's page cache and recommend using only its optimization features.

How to Test Your Settings

  1. Run your key pages through PageSpeed Insights before you start and note the main metrics.
  2. Enable one setting, then reload the page in a logged-out window.
  3. Click through menus, forms, sliders, popups and checkout.
  4. Run PageSpeed Insights again.
  5. Repeat for the next setting.
  6. After a few weeks, check the Core Web Vitals report in Search Console, which shows real-user data.

Lab scores are useful for spotting problems, but field data from real visitors is what Google uses. The speed hub explains both.

If Something Breaks

  • Layout looks wrong: turn off Remove Unused CSS or switch to Load CSS Asynchronously, then add the missing CSS to the safelist.
  • Menus, sliders or buttons do not work: turn off Delay JavaScript Execution, then turn it back on with the relevant scripts excluded, using one-click exclusions where available.
  • Fonts or icons are missing: check Self-host Google Fonts and any preloaded fonts.
  • Server is slow after setup: reduce preloading or follow WP Rocket's guide for large sites.

Common WP Rocket Mistakes

  • Running two page caches. Using WP Rocket alongside another caching plugin, such as LiteSpeed Cache or W3 Total Cache, causes conflicts. Deactivate the other plugin's page caching first.
  • Testing while logged in. Logged-in users see uncached pages by default, so results look slower and optimizations seem not to work.
  • Turning everything on at once. When something breaks, you have no idea which setting caused it.
  • Preloading every font. Preload only the one or two fonts used in the first screen. Extra preloads compete with your main image and content.
  • Lazy loading the hero image. Optimize Critical Images handles this automatically, but some themes and builders add their own lazy loading. Make sure your largest above-the-fold image is not delayed.
  • Cleaning the database without a backup. Cleanup cannot be undone.
  • Chasing a perfect lab score. A score of 100 in PageSpeed Insights matters less than fast, stable pages for real visitors. Stop when your Core Web Vitals pass and your pages feel fast.
  • Ignoring the bigger causes. No plugin setting can fully fix slow hosting, huge images or dozens of third-party scripts. See WordPress caching plugins and the speed hub for the full picture.

Final Word

WP Rocket's defaults are already a solid speed setup. The real gains come from Remove Unused CSS, deferred and delayed JavaScript, the Media options and preloading, enabled carefully and tested one by one. If you are still choosing a speed plugin, compare WP Rocket vs LiteSpeed Cache, see the WP Rocket alternatives, or check WP Rocket's current plans.

Frequently Asked Questions

What Are the Best WP Rocket Settings?

For most sites, keep the defaults and then turn on Remove Unused CSS, Load JavaScript Deferred and Delay JavaScript Execution in File Optimization, the LazyLoad and image dimension options in Media, and Preload Links. Enable them one at a time and test your key pages after each change.

Does WP Rocket Work Right After Activation?

Yes. Page caching, mobile caching, browser caching, GZIP compression, critical image optimization and automatic lazy rendering run automatically. Minify CSS and JavaScript, cache preloading, link preloading and reduced Heartbeat activity are also on by default.

Should I Enable Remove Unused CSS?

Usually yes, because it can reduce the CSS a page loads. It runs on WP Rocket's servers, so it takes a little time to process each page. If a layout breaks, add the affected CSS to the safelist or switch to Load CSS Asynchronously.

What Is Delay JavaScript Execution?

It holds back JavaScript files until the visitor interacts with the page, by scrolling, tapping or moving the mouse. That can speed up the first load, but scripts that must run immediately, such as some sliders or cookie banners, may need to be excluded.

Should I Use WP Rocket with My Host's Caching?

Check your host first. Some hosts block or replace page caching plugins, and some recommend specific settings. Avoid running two page caches at once. WP Rocket detects several hosts and adjusts its settings automatically.

What Should I Do If WP Rocket Breaks My Site?

Turn off the last setting you enabled and check the page again in a logged-out window. If that fixes it, use the plugin's exclusion fields or one-click exclusions for the affected file, then turn the setting back on.

Don't Have WP Rocket Yet? See Current Plans and the Refund Window

Check the current plans, site limits and refund terms on the official WP Rocket website.

See WP Rocket Plans