WP Rocket best settings 2026: every tab, tested on a live site

The exact WP Rocket 3.23 settings we run on our own site, investmarathi.com, why each one is on or off, and the PageSpeed results they gave.

Affiliate links: we may earn a commission at no extra cost to you. It never changes our verdicts.

Short answer

turn on mobile cache, minify CSS and JS, load JavaScript deferred, Delay JavaScript execution (exclude your ad and analytics scripts), LazyLoad, missing image dimensions and preloading. Leave Combine JS off. Enable Remove Unused CSS last and check your pages, because it is the setting most likely to need fixing.

Pritam Sonone
Verified byPritam Sonone
Read time7 min read

Summarize with AI:

Share

WP Rocket settings at a glance

Our recommended value and what we actually run on investmarathi.com.

TabSettingRecommendedOur site
CacheMobile cache + separate mobile filesOnOn
CacheCache lifespan10 hours10 hours
File OptimizationMinify CSS / JSOnOn
File OptimizationCombine JSOff (HTTP/2)Off
File OptimizationLoad JS deferredOn, exclude adsOn
File OptimizationDelay JS executionOn, exclude ads and analyticsOn (Safe Mode)
File OptimizationRemove Unused CSSOn, then testOn (processing)
MediaLazyLoad images + iframesOn, exclude adsOn
MediaYouTube preview imageOnOn
MediaAdd missing image dimensionsOnOn
PreloadActivate preloading + link preloadOnOn
HeartbeatReduce activityReduce periodicityReduce periodicity
DatabaseCleanupManual, after a backupOff

1. Cache

WP Rocket caches pages the moment you activate it; these are the only choices to make.

Enable caching for mobile devices
On

Needed so phones get cached pages too.

Separate cache files for mobile
On

Use it when mobile and desktop HTML differ, as with many themes and ad setups.

Cache for logged-in users
Off

Only for membership sites; it serves per-user cache files.

Cache lifespan
10 hours

Old cache is cleared and rebuilt on this schedule; content updates purge it anyway.

2. File Optimization

The tab with the biggest speed gains, and the one most likely to break something.

Minify CSS files
On

Removes whitespace and comments. Safe on almost every site.

Optimize CSS delivery: Remove Unused CSS
On, test after

Keeps only the CSS each page needs; this is what fixes slow mobile paint. It is processed in the cloud page by page.

Minify JavaScript files
On

Smaller scripts.

Combine JavaScript files
Off

Little gain on HTTP/2 hosting and a common cause of broken scripts.

Load JavaScript deferred
On

Gave us 0 ms Total Blocking Time. We exclude adsbygoogle, googlesyndication, pagead2, mgid, googletagmanager and gtag.

Delay JavaScript execution
On, Safe Mode first

Loads scripts on first scroll or tap. Exclude the same ad and analytics scripts so ads load straight away.

WP Rocket Delay JavaScript execution enabled with one-click exclusions
Delay JavaScript execution with one-click exclusions, investmarathi.com
WP Rocket File Optimization tab, Minify CSS enabled
File Optimization tab, investmarathi.com

3. Media

Image and video loading.

LazyLoad for images
On

Images below the fold load as visitors scroll. Exclude ad containers; WP Rocket also keeps the LCP image out of lazy-load automatically.

LazyLoad for iframes and videos
On

Embeds load on demand.

Replace YouTube iframe with preview image
On

A big saving on pages with videos.

Add missing image dimensions
On

Reserves space and reduces layout shift.

LazyLoad for CSS background images
Off

Turn on only if your theme uses large background images.

WP Rocket Media tab with LazyLoad for images and iframes enabled
Media tab, investmarathi.com

4. Preload

Keep the cache warm so the first visitor gets a fast page.

Activate preloading
On

Reads your sitemap and rebuilds the cache after every purge.

Exclude URLs
Author archives

Skip low-value pages so the preload finishes faster.

Enable link preloading
On

Starts loading a page when a visitor hovers over its link.

WP Rocket Preload tab with Activate Preloading enabled
Preload tab, investmarathi.com

5. Advanced rules, database, Heartbeat and CDN

Mostly leave these at their defaults.

Advanced Rules
Defaults

Add URLs only if a page must never be cached, such as a custom dashboard.

Database cleanup
Manual

Run it after a full backup; we do not schedule it.

Heartbeat
Reduce periodicity

Fewer background admin requests to the server.

CDN
Only if you use one

Our site uses Hostinger’s CDN, so we added no CNAME in WP Rocket.

Our before and after results

PageSpeed Insights on investmarathi.com, 17 Oct 2026, mobile.

TestSettingsMobile scoreLCPCLSTBT
Before, 8:35 AMBase settings, no Delay JS or RUCSS569.2 s0.1210 ms
After, 8:52 AM+ Delay JavaScript (Safe Mode)589.1 s0.10210 ms

Desktop scored 86 (LCP 1.7 s, TBT 0 ms, CLS 0) on the base settings. Remove Unused CSS was enabled at 8:45 AM but its jobs had not completed, so these results do not include it yet; we will add them when it finishes. Single Lighthouse runs, so expect a few points of variation. Full write-up: our WP Rocket review.

Troubleshooting WP Rocket

The three problems we see most, including one we hit while writing this.

Remove Unused CSS not working

  • It is processed in WP Rocket’s cloud, up to 100 URLs a minute
  • On our site all jobs stayed pending with a ‘400’ queue error
  • Pages kept their full CSS, so nothing broke
  • If it does not complete in an hour, contact WP Rocket support

Site or ads broken after Delay JS

  • Start with Safe Mode
  • Exclude ad, analytics and consent scripts
  • Use the one-click exclusions for your theme and plugins
  • Test logged out: optimisations do not run for logged-in users

WP Rocket settings for WooCommerce and Elementor

WooCommerce

  • WP Rocket already keeps cart, checkout and account pages out of the cache
  • Use the same settings as above
  • After Delay JS, test add to cart and checkout

Elementor

  • Use the Elementor one-click exclusion under Delay JS if menus or sliders stop working
  • Regenerate Elementor CSS after big changes, then clear WP Rocket’s cache
  • Check mobile layouts logged out

Hosting matters as much as settings

Our test site runs on Hostinger with PHP 7.4. PHP 7.4 stopped receiving security updates in November 2022, so moving to PHP 8.2 or later is our next speed and security step.

Compare WordPress hosting

WP Rocket price

From wp-rocket.me/pricing, 17 Oct 2026.

LicencePriceWebsitesRefund
Single$60/yr114 days
Plus$120/yr314 days
Multi$300/yr5014 days
Free PDF checklist by Digital Pritam
Free checklist (PDF)

21 WordPress speed fixes, ordered by impact

From our Speed Lab tests on Hostinger. Start at the top and stop when you are fast enough.

Free. Unsubscribe any time. Privacy policy

WP Rocket settings: FAQ

Still have a question?Ask Pritam directly. Every message is read.Ask a question
What are the best WP Rocket settings?

For most sites: mobile cache on, minify CSS and JS, load JavaScript deferred, Delay JavaScript execution with your ad and analytics scripts excluded, LazyLoad for images and iframes, add missing image dimensions, and preloading on. Turn on Remove Unused CSS last and test your pages after.

Should I combine JavaScript files in WP Rocket?

Usually no. On HTTP/2 hosting, combining brings little gain and can break scripts. We leave it off.

Why is WP Rocket Remove Unused CSS not working?

Used CSS is generated by WP Rocket’s cloud service page by page, so it can take time. On our site the jobs stayed pending with a 400 queue error, so the pages kept their full CSS. Wait, check the job status, then contact WP Rocket support if it does not complete.

How do I stop Delay JavaScript from breaking ads?

Add the ad scripts to the Delay JavaScript exclusions. We exclude adsbygoogle, googlesyndication, pagead2, mgid, googletagmanager and gtag, and the ads still load immediately.

What are the best WP Rocket settings for WooCommerce?

Use the same settings. WP Rocket already keeps the cart, checkout and account pages out of the cache. Test the cart and checkout after enabling Delay JavaScript.

Can I use WP Rocket with LiteSpeed Cache?

Do not run two page caches. On a LiteSpeed host you can use LiteSpeed Cache instead, or use WP Rocket with LiteSpeed Cache’s page cache turned off.

Does WP Rocket improve Core Web Vitals?

On our site it brought Total Blocking Time to 0 ms on mobile and desktop and desktop LCP to 1.7 s. Mobile LCP stayed high until render-blocking CSS is removed.

Is there a WP Rocket settings file to import?

WP Rocket can export and import settings under Tools. Import only from a site with the same theme and plugins, then test, because exclusions are site-specific.

Who checked this

About this page

Pritam Sonone

Pritam Sonone

Founder of Digital Pritam. WordPress developer and designer, WordCamp Kolhapur 2025 speaker. Builds WordPress sites for clients.

How we checked

  • Settings read from WP Rocket 3.23.3.3 on our own site, investmarathi.com, 17 Oct 2026
  • Before and after PageSpeed Insights runs at 8:35 and 8:52 AM IST, same URL and device
  • Remove Unused CSS job status read from WP Rocket’s database table on the server

Sources: PageSpeed report, before · PageSpeed report, after · WP Rocket documentation · WP Rocket pricing

Read our full testing process

Affiliate links: we may earn a commission at no extra cost to you. It never changes our verdicts.

Share