WP Rocket is a very powerful caching plugin, and it is easier to setup than most other cache plugins for WordPress. And, you have extensive documentation about setting it up.

But, sometimes it is usefult to see on a practical example what settings to use, and what is a real world use for some settings. There are many settings that documentation recommendes, but they don’t produce any real gain. All settings and recommendations in this tutorial are based on the WP Rocket settings used on this website. We will start from the first, Cache tab.

Basic Cache Settings
Basic Cache Settings

On the Cache tab, you should enable caching for mobile devices. But, we don’t use Separate cache for mobile devices, because there are no files loaded for mobile devices, compared to destkop. If you load some files on mobile devices only, enable this option too. It is useful to enable caching for logged-in users, escpecially if you have personalized content for logged in users. As for the cache lifespan, 24 hours is good expiration value.

Files optimization is the tricky part, and from experience, enable all basic settings: Minify HTML, Combine Google Fonts files and Remove query strings from static resources. As for the CSS and JS caching, this can be very benefitial, but it can be very hard to configure, especially if you have a lot of plugins in use because there is always one that will break the JS or CSS cache. Also, if your server supports HTTP/2 protocol, there is really no need to minify and merge multiple files into one, because over HTTP/2 number of served files doesn’t slow down loading.

On the Media tab, I only use the option to disable Emoji. As for the Preload tab, if you use sitemaps, enable the preload, and set it up as Automatic.

Finally, the CDN tab. If you don’t use CDN, start using it. If you use Cloudflare or some similar service, CDN is included, so you don’t need to use the CDN tab. But, for other cases, CDN setup depends on the CDN service you use, but generally, you need to provide one or more CDN names to use for replacing your media URLs. WP Rocket allows you to use CDN for images, JS and CSS files, and you can provide different CDN URLs for each one.

As you can see, WP Rocket is not complicated to setup, but, for some more advanced settings, you need to invest sime time in experimenation. And, make sure to test your website after making changes, because if you setup something wrong, you can break it.

Please wait...

WP Rocket

Make your WordPress powered website load fast in just a few clicks
WP Rocket - Superior WordPress Performance

The most powerful and full featured caching plugin for WordPress, with very simple setup. Plugin supports page cache, CDN, CloudFlare, Preloading, Lazyload, minification, prefetch and much more.

Disclosure: This post contains affiliate links, which means that I receive compensation if you make a purchase using this link.

About the author

MillaN
MillaN
Dev4Press owner and lead developer

Programmer since the age of 12 and now WordPress developer with more than 8 years of WordPress experience, author of more than 100 plugins and more than 20 themes.

WP Engine - Managed WordPress Hosting

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Newsletter

Subscribe to get all the latest news and promotions.

Subscribe We will not send you any spam. Newsletters are sent 2 to 4 times every month.