Plugin how-tos · Guide
What Are WP Rocket Settings and How Do You Set Them?
Short answer
WP Rocket settings live in Settings > WP Rocket in your WordPress admin, and version 3.24 groups them under Dashboard, Cache, Page Optimization, Backend, Content Delivery, and Tools. Most sites should keep the defaults, leave Cache Lifespan at 10 hours, and turn on Preload Cache. Change JavaScript settings one at a time, then check a page in a private browser window before you change the next one.
Key takeaways
- WP Rocket 3.24 groups settings under Dashboard, Cache, Page Optimization, Backend, Content Delivery, and Tools.
- The default Cache Lifespan is 10 hours, and WP Rocket checks cache files every hour.
- Page Cache, Mobile Cache, and several other features start automatically when you activate WP Rocket.
- Delay JavaScript execution waits for a mouse move, scroll, touch, or key press before scripts run.
- Remove Unused CSS and Load CSS Asynchronously need an active licence because they run on WP Rocket servers.
- A good Largest Contentful Paint is 2.5 seconds or less at the 75th percentile of page loads.
What are WP Rocket settings and where do you find them?
WP Rocket settings are the controls in Settings > WP Rocket that decide what the plugin caches, minifies, preloads, and cleans up.
WP Rocket version 3.24 introduced a new dashboard, and its docs page was last updated on 29 October 2026. The new layout groups settings under Dashboard, Rocket Insights, Content Delivery, Cache, Page Optimization, Backend, Tools, Help, and Account, as listed in the WP Rocket dashboard guide.
If you used an older version, the names may look moved. File Optimization is now Page Optimization → JavaScript & CSS, Media is now Page Optimization → Image & Media, Preload is now Cache → Preload, and Advanced Rules is now Cache → Cache Rules.
Updating to WP Rocket 3.24 does not change your existing configuration. Your settings stay enabled or disabled as they were before the update, according to the same WP Rocket dashboard guide.
| Old location | New location in WP Rocket 3.24 |
|---|---|
| File Optimization | Page Optimization → JavaScript & CSS |
| Media | Page Optimization → Image & Media |
| Preload | Cache → Preload |
| Advanced Rules | Cache → Cache Rules |
| Database | Backend → Database |
| Add-ons | Tools → Add-ons |
What does WP Rocket turn on by itself?
WP Rocket turns on page caching, mobile caching, and several small optimizations as soon as you activate it.
Page Cache stores a saved copy of each page, and Mobile Cache serves a cached copy to phones.
The automatic features listed in the WP Rocket features guide also include Optimize Critical Images, Automatic Lazy Rendering, Preconnect to external domains, Browser caching, GZIP compression, and Disable WordPress Emoji.
The defaults on first activation are also simple. Minify CSS files and Minify JavaScript files are on, Cache Lifespan is set to 10 hours, Preload Cache and Preload Links are on, and Heartbeat Control is set to Reduce Activity, according to the same WP Rocket features guide.
What do you need before you change any settings?
You need a backup, admin access, and a way to check a page after each change.
Make a full backup before you touch JavaScript or CSS settings. If a change breaks a menu, a form, or a slider, a backup lets you go back in minutes instead of guessing which switch caused it. See how to back up WordPress before you start.
Check your server basics next. WordPress.org recommends PHP 8.3 or greater, MariaDB 10.11 or greater or MySQL 8.4 or greater, and HTTPS support, as stated on the WordPress requirements page. A slow server will still limit what any cache plugin can do.
Plan for about 30 to 60 minutes for a first setup on a small site. Most of that time is checking pages, not clicking switches. Change one setting, save, clear the cache, and check the site before you move on.
- Admin access to WordPress and to your host or backup tool
- A recent full backup of files and the database
- A list of pages to check: home, one post, one product or form page, and the checkout page if you sell online
- A private browser window, so you see the cached page as a visitor sees it
How do you set up the Cache settings?
Leave page caching on, leave Mobile Cache on, and leave Cache Lifespan at 10 hours unless you have a clear reason to change it.
Page caching is the main job of WP Rocket. It saves a static copy of each page and serves that copy to the next visitor, so WordPress does not build the page from scratch each time.
Cache Lifespan sets the maximum age of a cached page. The default value is 10 hours, and WP Rocket checks cache files every hour and deletes files older than that value, as explained in the Cache Lifespan guide.
A shorter lifespan shows new content sooner, but it also rebuilds cache files more often. A very short lifespan can cause CPU overload when Preload is on, according to the same Cache Lifespan guide.
Steps to set the cache
- Go to Settings > WP Rocket, then open Cache.
- Confirm that page caching is on and that mobile caching is on.
- Open Cache Rules and check that Cache Lifespan is 10 hours.
- Save your changes, then use Clear Cache from the WP Rocket menu in the admin bar.
- Visit your home page in a private window and confirm it loads as normal.
If your host already runs its own page cache, WP Rocket caching may be disabled there. The Cache Lifespan feature will not work on hosts where WP Rocket caching is disabled, such as WP Engine, Kinsta, and WordPress.com, as noted in the Cache Lifespan guide.
See WP Rocket vs host caching for how the two layers relate.
How do you set up Page Optimization for CSS and JavaScript?
Keep Minify CSS and Minify JavaScript on, leave Combine JavaScript off when Delay JavaScript is on, and change one JavaScript option at a time.
Minify means removing extra spaces and comments from a file to make it smaller. WP Rocket turns on Minify CSS files and Minify JavaScript files by default, and most sites can leave both on.
Remove Unused CSS deletes CSS rules that a page does not use, which can shrink the CSS that blocks the first paint. Load CSS Asynchronously loads CSS in a way that does not block the page from showing.
Both are cloud features, so they run on WP Rocket servers and need an active licence, as stated in the WP Rocket features guide.
Delay JavaScript execution is the strongest JavaScript option in WP Rocket. It delays all JavaScript files and inline scripts until a user interaction, such as moving the mouse, touching the screen, scrolling, or pressing a key, according to the Delay JavaScript execution guide.
Steps to set JavaScript and CSS
- Go to Page Optimization → JavaScript & CSS.
- Keep Minify CSS files and Minify JavaScript files on.
- Turn on Load JavaScript deferred first, save, clear the cache, and check your pages.
- Turn on Delay JavaScript execution next, save, clear the cache, and check menus, forms, sliders, and videos.
- Turn on Remove Unused CSS last, one site section at a time if you can, and check the layout on each page type.
Delay JavaScript execution applies only on cached or optimized pages. When it is on, Combine JavaScript files is disabled so scripts load in the right order, as explained in the Delay JavaScript execution guide.
If a button or form stops working, use the One-click exclusions or the Excluded JavaScript Files box in the same screen. You can also add the nowprocket attribute to a script to keep it out of the delay, as described in that guide.
How do you set up images, media, and fonts?
Turn on LazyLoad for images, iframes, and videos, add missing image dimensions, and let WP Rocket preload the fonts used above the fold.
LazyLoad means an image or video loads only when it is close to the screen. That keeps below-the-fold media from slowing the first view. WP Rocket lists LazyLoad, LazyLoad for CSS background images, LazyLoad for iframes and videos, and Replace YouTube iframe with preview image under Page Optimization → Image & Media.
Add missing image dimensions tells the browser how much space an image will take before it loads. That step helps stop layout shift, where text jumps as images appear. For background on layout shift, see what INP is.
For the full speed checks, see how to configure WP Rocket for Core Web Vitals.
Preload fonts finds the fonts used in the text above the fold and loads them early. Self-host Google Fonts stores Google Fonts files on your own server instead of fetching them from Google on each visit.
- LazyLoad for images: on for most sites
- LazyLoad for iframes and videos: on, and use the YouTube preview image option if you embed videos
- Add missing image dimensions: on
- Preload fonts: on
- Self-host Google Fonts: on if your site uses Google Fonts
How do you set up preload and cache rules?
Turn on Preload Cache and Preload Links, then use Cache Rules only for pages that must never be cached.
Preload Cache visits your pages after the cache is cleared and builds fresh cache files, so the first real visitor does not wait for that build. Preload Links preloads a page when a visitor hovers over a link to it, which can make the next click feel faster.
Cache Rules hold the fine controls. Never Cache URL(s) keeps a page out of the cache, Never Cache Cookies skips caching for visitors with a named cookie, and Always Purge URL(s) clears named pages whenever the cache is cleared.
Use Never Cache URL(s) for cart, checkout, account, and logged-in dashboard pages. Do not add your home page or blog posts there unless you have a clear reason.
User Cache creates a separate set of cache files for each logged-in WordPress user. It is off by default, and you should turn it on only if logged-in users see different content from each other, such as in a membership site or forum.
When User Cache is on, Preload cache, Preload links, and Remove Unused CSS cannot be applied to logged-in users, so test logged-in pages separately if you enable it.
How do you set up the database and Heartbeat settings?
Run database cleanup by hand first, then turn on Automatic Cleanup on a weekly schedule if your site changes often.
The Database screen under Backend → Database covers Post Cleanup, Comments Cleanup, Transients Cleanup, Database Cleanup, and Automatic Cleanup. Post Cleanup removes revisions, auto drafts, and trashed posts. Comments Cleanup removes spam and trashed comments.
Transients Cleanup removes expired short-lived values in the database. Database Cleanup optimizes database tables after the other cleanups run.
Steps to clean the database safely
- Make a backup first, because database cleanup deletes data.
- Go to Backend → Database and select only Post Cleanup and Comments Cleanup.
- Click Save Changes and Optimize, then check that recent posts and comments are still there.
- Add Transients Cleanup on the next run if the first run caused no problems.
- Turn on Automatic Cleanup only after a manual run looks clean.
Heartbeat Control limits how often WordPress sends heartbeat requests from the admin screen. The default is Reduce Activity, and that setting is fine for most sites.
How do you set up a CDN in WP Rocket?
Use Content Delivery to point WP Rocket at your CDN, and do not turn on a second CDN layer that serves the same files.
A CDN is a set of servers in many places that deliver your static files from the server closest to each visitor. WP Rocket has two CDN choices under Content Delivery: RocketCDN, its own add-on, and Other CDN, for a CDN you already use.
RocketCDN is available in free and paid plans inside WP Rocket. If you already use another CDN, choose Other CDN and enter the CDN address that your provider gave you.
The Cloudflare add-on under Tools → Add-ons connects WP Rocket to Cloudflare settings. If you use Cloudflare, set the cache rules there once. For Cloudflare setup, see Cloudflare cache rules for WordPress.
After you save CDN settings, clear the cache and load a page in a private window. View the page source and check that image and file addresses use the CDN address you entered.
How much does WP Rocket cost as of November 2026?
WP Rocket starts at $59.95 per year for 1 website as of November 2026, with no free version and a 14-day free trial.
WP Rocket lists three plans, and every licence includes the same features and the same support. The prices below were checked in October 2026 on the vendor site, as noted on the WP Rocket pricing comparison.
| Plan | Websites | Price per year as of November 2026 |
|---|---|---|
| Single | 1 | $59.95 |
| Plus | 3 | $119.95 |
| Multi | 50 | $299.95 |
The Multi plan also has options for 100 and 500 websites. A 14-day free trial is available, and the trial page lets you try any licence, as stated on the WP Rocket trial page.
Pick the plan by the number of sites you will run, not by features, because the features are the same on all three. For speed help on a single site, see how to speed up WordPress.
How do you check that WP Rocket is working?
Check the page source for a WP Rocket comment, check that pages load after a cache clear, and check LCP in PageSpeed Insights.
To confirm caching, open a page, view the page source, and look near the end for a WP Rocket comment. If you see it, the page came from the cache.
Check LCP next. LCP is the time until the largest image or text block in view finishes rendering. A good LCP is 2.5 seconds or less, measured at the 75th percentile of page loads, as stated on the web.dev LCP guide.
Run PageSpeed Insights on your home page and on one slow page before and after a change. Compare the same page and device type, because a single run can vary.
- Clear the cache, then load the page twice and check the second load
- Open menus, forms, sliders, videos, and the cart or checkout
- Check a logged-in view if you turned on User Cache
- Check the site on a phone, not only on a desktop
If a page breaks, turn off the last setting you changed, clear the cache, and check again.
What mistakes should you avoid?
Avoid changing many settings at once, caching pages that must stay fresh, and turning on Delay JavaScript without checking forms and menus.
Changing 5 settings at once makes it hard to know which one broke a page. Change one, save, clear the cache, and check the site. That rule matters most for JavaScript and CSS.
Do not cache cart, checkout, account, or login pages. A cached checkout can show one visitor the wrong cart or the wrong price. Use Never Cache URL(s) for those pages.
Do not set Cache Lifespan to a very short value to force fresh content. WP Rocket already clears the cache when you publish or update content.
Do not turn on a second minify tool in your theme, host, or another plugin while WP Rocket is minifying the same files. Turn off the other tool first, then check the site.
Do not skip the backup step before database cleanup. Post Cleanup and Comments Cleanup delete revisions, drafts, and spam comments, and those deletions cannot be undone from the plugin screen.
Frequently asked questions
Where are WP Rocket settings in WordPress?
WP Rocket settings are in Settings > WP Rocket in the WordPress admin. In version 3.24, the settings are grouped under Dashboard, Cache, Page Optimization, Backend, Content Delivery, Tools, Help, and Account. If you used an older version, File Optimization is now under Page Optimization, and Preload is now under Cache.
Should I leave WP Rocket on its default settings?
Yes, for most sites the defaults are a safe start. Minify CSS and Minify JavaScript are on, Cache Lifespan is 10 hours, Preload Cache and Preload Links are on, and Heartbeat Control is set to Reduce Activity. Change JavaScript settings one at a time after that, and check each page before you change the next setting.
Why did Delay JavaScript execution break my menu or form?
Delay JavaScript execution waits for a mouse move, scroll, touch, or key press before scripts run, so scripts that must run at once can look broken. Use the One-click exclusions or the Excluded JavaScript Files box to exclude the script for that menu or form. If many scripts break, use Safe Mode for Delay JavaScript Execution while you find the exact files to exclude.
How often should WP Rocket clear the cache?
WP Rocket clears the cache for a post or page, the homepage, and related content when you publish or update that content. The default Cache Lifespan is 10 hours, and WP Rocket checks cache files every hour. You can also clear the whole cache by hand from the WP Rocket menu in the admin bar after a design or settings change.
Can I use WP Rocket with my host cache or Cloudflare?
Yes, but check which layer is doing the work first. Some hosts run their own page cache and disable WP Rocket caching, so ask your host before you change Cache Lifespan. If you use Cloudflare, set its cache rules once and avoid minifying the same files in both Cloudflare and WP Rocket, because two tools changing the same files can break a page.
Do I need User Cache for a normal blog?
No. User Cache is for sites where logged-in users see different content from each other, such as a membership site or forum. A normal blog can leave it off. When User Cache is on, WP Rocket makes a separate cache for each logged-in user, and preload and Remove Unused CSS cannot be applied to those logged-in views.
Sources
- WP Rocket dashboard WP Rocket Knowledge Base
- What exactly does WP Rocket do? WP Rocket Knowledge Base
- Delay JavaScript execution WP Rocket Knowledge Base
- Cache Lifespan WP Rocket Knowledge Base
- Best WordPress Caching Plugins WP Rocket
- Requirements WordPress.org
- Largest Contentful Paint (LCP) web.dev
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
