Allow EWWW Image Optimizer to track plugin usage? Opt-in to tracking and receive 500 free image credits in your admin email: [email protected]. No sensitive data is tracked. Learn more.AllowDo not allow

The Redis object cache drop-in is outdated. Please update it now.

Speed up your website and boost your SEO by reducing image file sizes without losing quality with Imagify.

Install Imagify for Free

Hola! Would you like to receive automatic updates and unlock premium support? Please activate your copy of Visual Composer.

WP Rocket 2.9

Basic options

Lazyload:
Lazyload on images
Lazyload on iframes and videos

LazyLoad displays images, iframes and videos on a page only when they are visible to the user.
This mechanism reduces the number of HTTP requests and improves the loading time.

Files optimisation:
(Minification & Concatenation)
HTML Files minification
Inline CSS minification
Inline JS minification
Google Fonts minification
CSS Files minification
JS Files minification

Minification removes any spaces and comments present in the CSS and JavaScript files.
This mechanism reduces the weight of each file and allows a faster reading of browsers and search engines.
Concatenation combines all CSS and JavaScript files.
This mechanism reduces the number of HTTP requests and improves the loading time.

Warning: Concatenating files can cause display errors.

Warning: In case of any errors we recommend you to turn off this option or watch the following video: http://www.youtube.com/embed/kymoxCwW03c.

Mobile cache:
Mobile cache:

Are you using a dedicated mobile theme or wp_is_mobile()? If so, you should activate this option to serve a specific caching file for your mobile visitors.

Warning: If you are using one of these plugins, you must activate this option: WP Touch (Free Version), wiziApp, WordPress Mobile Pack, WP-Mobilizer, WP Mobile Edition, Device Theme Switcher, WP Mobile Detect, and Easy Social Share Buttons

Feeds cache:
Feeds cache:
Logged in user cache:
Logged in user cache:
Common cache for logged in users

You can use this option if you want to only have one cache folder fo all logged in users, instead of creating one for each. This can be useful if you serve the same content for all users.

SSL cache:
Emojis:
Emojis:

Note: By activating this option, you will reduce the number of external HTTP requests.

Clear Cache Lifespan
Clear Cache Lifespan Unit of time

By default, cache lifespan is 24 hours. This means that once created, the cache files are automatically removed after 24 hours before being recreated.
This can be useful if you display your latest tweets or rss feeds in your sidebar, for example.

Specify 0 for unlimited lifetime.

Advanced options

Static Resources:
Remove query strings from static resources

This will remove the version query string from static resources and encode it in the resources filename instead. e.g. style.css?ver=1.0 will become style-1.0.css

Note: By activating this option, you will improve the Remove query strings from static resources grade on GT Metrix.

Prefetch DNS requests:
Prefetch DNS requests:

DNS prefetching is a way for browsers to anticipate the DNS resolution of external domains from your site.
This mechanism reduces the latency of some external files.

To learn more about this option and how to use it correctly, we advise you to watch the following video: http://www.youtube.com/embed/jKMU6HgMMrA.

Note: Enter the domain names without their protocol, for example: //ajax.googleapis.com without http: (one per line).

Empty the cache of the following pages when updating a post:
Empty the cache of the following pages when updating a post:

Enter the URL of additional pages to purge when updating a post (one per line).
You can use regular expressions (regex).

Note: When you update a post or when a comment is posted, the homepage, categories and tags associated with this post are automatically removed from the cache and then recreated by our bot.

Never cache the following pages:
Never cache the following pages:

Enter the URL of pages to reject (one per line).
You can use regular expressions (regex).

Note: The cart and checkout pages are auto-excluded from the cache for WooCommerce, Easy Digital Download, iThemes Exchange, Jigoshop & WP-Shop.

Don't cache pages that use the following cookies:
Don't cache pages that use the following cookies:

List the names of the cookies (one per line).

Cache pages that use the following query strings (GET parameters):
Cache pages that use the following query strings (GET parameters):

List of query strings which can be cached (one per line).

Never send cache pages for these user agents:
Never send cache pages for these user agents:

Enter the user agents name to reject (one per line).
You can use regular expressions (regex).

Reducing the number of minified files in one file on:
CSS Files minification
JS Files minification

Note: We combine the minified files in little groups to ensure the best compatibility and better performance.
However you can force the minification to create only 1 file by activating this option.
But it's not recommended to do that because you won't take advantage of the parallelization of the download: it's faster to download 4 files in parallel rather than one big file.

Warning: Depending to your server configuration, these options can break your website. If you have any issues, you must deactivate it!

CSS files to exclude from minification:
CSS files to exclude from minification:

Enter the URL of CSS files to reject (one per line).
You can use regular expressions (regex).

JS files to exclude from minification:
JS files to exclude from minification:

Enter the URL of JS files to reject (one per line).
You can use regular expressions (regex).

JS files to be included in the footer during the minification process:
JS files with deferred loading:
JS files with Deferred Loading JavaScript

Add URL

You can add JavaScript files that will be loaded asynchronously at the same time as the page loads.

Empty the field to remove it.

Warning: You must specify the complete URL of the original files. Do NOT add URLs of minified files generated by WP Rocket.

The following options help you optimize your database.

Before you do any optimization, please backup your database first because any cleanup done is irreversible!

Database Optimization

Posts cleanup:
Cleanup revisions

824 revisions in your database.

Cleanup auto drafts

1 draft in your database.

Cleanup trashed posts

0 trashed posts in your database.

Comments cleanup:
Cleanup spam comments

0 spam comments in your database.

Cleanup trashed comments

0 trashed comments in your database.

Transients cleanup:
Cleanup expired transients

0 expired transients in your database.

Cleanup all transients

9 transients in your database.

Database cleanup:
Optimize database tables

19 tables to optimize in your database.

Automatic cleanup:
Schedule an automatic cleanup of the database
Frequency for the automatic cleanup
Run cleanup:
Optimize

Warning: If you made any change to the settings, use the save and optimize button

Preload options

Activate preload bot:
Activate manual preload (from admin bar or Tools tab of WP Rocket)
Activate automatic preload after partial cache clearing

WP Rocket uses a bot to preload your content and create the cached files. You can deactivate it if you need to.
Manual preload is launched from the admin bar menu or from the Tools tab of WP Rocket.
Automatic preload is launched after you add/update content on your website.
You can read our documentation to learn more about it: http://docs.wp-rocket.me/article/8-how-the-cache-is-preloaded

Sitemap preloading:
Activate sitemap preloading

The sitemap preloading can be launched from the admin bar menu or the Tools tab of WP Rocket. It will also automatically run when the lifespan of the Clear Cache Lifespan option expires.

Preload the sitemap from the Yoast SEO plugin

We automatically detected the sitemap generated by the Yoast SEO plugin. You can check the option to preload it.

URL crawl interval:
Interval between each URL crawl

You can use this option to change the interval between each URL crawl.

Warning: Depending on your server, it might be necessary to set a higher value to prevent any overload. Default is 500ms.

XML sitemaps to use for preloading:
The sitemap files to use for preloading the cache

Enter the URL of the XML sitemap files (one per line).

Content Delivery Network options

CloudFlare
CloudFlare

This option allows you to configure some CloudFlare settings like development mode, purge cache and a recommended configuration.

Note: If you are using CloudFlare, configure the options in the CloudFlare tab. The CDN settings below do not apply to CloudFlare.

CDN:
CDN:

CDN function replaces all URLs of your static files and media (CSS, JS, Images) with the url entered below. This way all your content will be copied to a dedicated hosting or a CDN system maxCDN.

CDN & SSL:
CDN & SSL:
Replace site's hostname with: Replace site's hostname with:

Add CNAME

Rejected files:
Rejected files:

Specify the URL files that should not use the CDN. (one per line).
You can use regular expressions (regex).

The following options are for hosting with Varnish cache system.
If you don’t know if Varnish is installed on your server, you can ignore these settings.

Varnish

Varnish Caching Purge
Varnish Caching Purge

The Varnish cache will be purged each time WP Rocket cache needs to be cleared to avoid conflict.

Note: If your server is using Varnish, you must activate this option.

Tools

Beta Tester
Beta Tester

Check it to participate in the WP Rocket Beta Program and get earlier access to new versions, thanks in advance.

Clear cache
Clear cache

Clear the cache for the whole site.

Preload cache
Preload cache

Allows you to request a bot crawl to preload the cache (homepage and its internal links).

Purge OPcache
Purge OPcache
Settings Exporter
Download options
Settings Importer


Update Rollback
Reinstall v2.8.23

Is the version 2.9 causing you some issues? You can ask for a rollback and reinstall the last version you used before.

Warning: Please backup your settings before, use the "Download options" button above.

Tutorials

Preload cache
Watch the video

This video gives some explanations about our two crawler robots. They generate several cache files in a few seconds.

CSS and JavaScript minification
Watch the video

This video gives some explanations about how to use the advanced processes of minification and concatenation of CSS and JavaScript files.

Preloading DNS queries
Watch the video

This video helps to easily understand the advanced option of "Preloading DNS queries" and the use of the filter rocket_dns_prefetch.

How to use the White Label functionality?
Watch the video

This video helps to set up a White Label version of WP Rocket.

How to use the CDN functionality?
Watch the video

This video helps to understand what is the CDN functionality included since WP Rocket 2.1.

How to use the CDN API?
Watch the video

This video helps to set up the two functions get_rocket_cdn_url() and rocket_cdn_url().

Support

Summary
Summary
Description
Description