How to Configure and Install WP Rocket?
Do you want to properly install and configure WP Rocket plugin in WordPress?
Maximizing the speed of the website has become vital, as search engines place so much emphasis on the speed of the load time. Increasing the speed of your website brings many benefits.
Statistically, almost half of your website audience expects your site to load in less than 3 seconds. So it’s not surprising that Google continues to emphasize site speed in its search algorithm.
The higher the page speed, the better your search rankings and the more organic traffic you can drive.
Faster websites prove to have better conversions, higher search engine rankings, and more content reach. Another issue with slow loading time is that visitors instantly abandon pages that don’t load within seconds of opening!
Increasing website speed may seem complicated at first glance, but it is possible if you use the right optimization tools. WP Rocket is one such tool. This WordPress plugin will make your speed optimization journey easier and more effective.
What does caching have to do with speeding up your website?
Before configuring WP Rocket, let’s find out why this caching plugin is used to speed up websites. Caching makes a huge difference in site performance and load time.
WP Rocket keeps dynamic data in a temporary storage so it can be retrieved instantly on demand. This caching principle makes it possible for a website to run faster and more efficiently.
Without further ado, let’s get started with configuring WP Rocket to speed up your website.
Since WP Rocket is a premium WordPress plugin, the first step is to purchase a WP Rocket License.
After the download is complete, go to Plugins → Add New to install WP Rocket .
WP Rocket automatically configures most of its features when enabled. After installing and activating WP Rocket, these features will launch automatically:
- Page and browser caching
- Web fonts Cross-Origin support
- GZIP compression
To make setup easy, each of the steps below matches the tabs you’ll find to the left of the add-on panel. Follow these steps one by one to properly configure WP Rocket plugin.
The first tab you will see after the Dashboard is Cache. This tab doesn’t require much configuration though.
One thing you should definitely do is to enable separate cache files for Mobile under Mobile Cache .
If your website has a registration feature or any user-specific content, you should also enable the Enable cache option for logged in WordPress users under User Cache .
Note that the options under the File Optimization section are the most advanced, so be careful when changing any of the settings unless you are a professional developer.
Often times, when users configure File Optimization manually, something goes wrong when the layout, links or forms are broken. WP Rocket’s documentation will help you fix issues with the File Optimization section.
The Media tab allows you to manage late loading, Emoji and WordPress embeds.
Late loading is a content optimization method that significantly increases the page’s load time. The main idea is to show the content on the page (for example, images and videos) only when they are visible to visitors when they scroll down. This optimization technique makes your website run much faster and more efficiently.
We recommend enabling all available features. Also, consider checking the Replace YouTube iframe with preview image box to further speed up your load times .
Usually cached plugins wait for a website visitor to navigate to each page. The preload feature is very important for caching pages because unlike other plugins WP Rocket automatically creates the cache first to serve the cached pages later.
Enable the sitemap-based cache preloading feature. Now select your sitemap.
Scroll down to find Prefetch DNS Requests . If you are using any third party content, this is where you can add its URL. For example, you can link Instagram, YouTube, LinkedIn, Facebook and add Google fonts.
Certain cookies, user agents, pages, etc. You can disable caching under the Advanced Rules tab.
Most of the time you leave Progress Rules as they are, as the plugin automatically detects plugins that should be excluded from caching . If you want to exclude something specific (e.g. your cart page), you can certainly do so under Advanced Rules .
Scrolling down you will find the Database tab. This is where you can clean your WordPress database of anything unnecessary.
Be sure to make a backup copy of your website before checking any boxes! Avoid unnecessary post revisions, spam comments, transients, etc. You can delete it. You also have the option to set up an automatic cleanup schedule for your plugin to run on its own.
CDN instead allows you to rewrite URLs on your website to serve content from your CDN. If you are not using CDN, you can skip the configuration of this section.
For example, you can modify it so that instead of loading images from your media library, WP Rocket loads images from a CDN version.
The Heartbeat section aims to improve the dashboard functionality. The editor simplifies many useful features such as autosave and user session management.
You can enable the Control Heartbeat feature to save some resources of your server.
If you don’t want to disable the Heartbeat API specifically, it is better to reduce or disable other Heartbeat activity settings .
WP Rocket provides specific plugins for Sucuri, Facebook Pixel, Google Analytics, and Cloudflare.
If you’re using Google Analytics or Facebook Pixel, WP Rocket ‘s plugins allow you to host these tracking scripts locally instead of installing them from Google or Facebook.
These servers will also see useful features for Sucuri or Cloudflare, such as by clearing the cache cache when open WP Rocket .
If you want to enable any of these features, simply open the required plugin.
We hope this article helped you learn how to properly install and configure the WP Rocket plugin in WordPress !