It goes without saying – though not for everyone, apparently! – that a site’s speed is a fundamental requirement for winning and keeping visitors (read also “buyers”).
WP Rocket is a widely used commercial solution for managing some of the optimisation parameters of a WordPress site.
In this article – the first in a series – we will focus on the basic features of the plugin, which start on first activation. We can divide them into automatic (not visible in the settings) and default (easily managed).
WP Rocket and the server
It is strongly recommended to find out about the integration between WP Rocket and your own server!
Take the case of Kinsta, which we use extensively: since version 3.0 of WP Rocket, GZIP compression and page caching are automatically disabled in the plugin and handled by the server.
Features such as the cache lifespan may be irrelevant. Others, such as cache preloading, may even be discouraged!
For the specifics, see this update (from January 2022).
We do not rule out covering the topic in one of the next articles.
1 – Automatic features
When WP Rocket is activated, some features start automatically, without being visible in the settings. The most important are:
- Page cache,
- Expiry settings for the browser cache,
- GZIP compression.
The full list is given in this article.
Let’s look at the 3 mentioned in detail.
1.1 – Page cache
Simply put, it consists of storing the code of a page.
On the first view by any user (or during the preloading phase, as we shall see), WordPress generates the HTML code. This will be available for all subsequent views, by any user, until it expires.
It goes without saying that using static HTML means a reduced load on the server (on both PHP and MySQL) and greater speed.
The cache is cleared in full or in part:
- When it expires;
- When content is published/updated (together with the home page and the archive pages of the taxonomies the page belongs to);
- When WP Rocket’s settings are changed.
1.2 – Expiry settings for the browser cache
The browser cache is the classic storage of files in the user’s browser. It is normally always active (unless inhibited) for any static content on the web.
Site content may need updating at different intervals.
For example, the company logo will not be changed often. It can be stored in the user’s browser, with the expiry set to one week. If the file changed, it would take at most a week to be downloaded again.
This is where WP Rocket comes in, adjusting the expiry times and optimising them according to the content. It should be said that the configuration on Apache, being able to make use of changes to .htaccess, will be more complete. It is also possible to act manually to achieve the same results on NGINX.
As a result, if the user visits several pages, or visits the same page several times, bandwidth and HTTP requests are reduced and speed increases.
Browser cache
The browser cache only concerns content served from the domain; NOT third-party content (Google, Facebook, etc.).
1.3 – GZIP compression
GZIP is a compression format that can be applied to content served over the network (pages, stylesheets, JavaScript), thereby reducing transfer times.
GZIP and domains
GZIP compression can only be applied to content served from the domain; not to third-party content (Google, Facebook, etc.).
WP Rocket enables GZIP compression only on Apache, by modifying .htaccess. For NGINX and IIS, you need to contact the provider directly.
2 – Default features
Some features, active by default, can be managed in the settings. These include:
- Mobile cache;
- Cache expiry of 10 hours;
- Cache preloading;
- Link preloading;
- Reduced activity of the Heartbeat API.
Let’s go through them briefly.
2.1 – Mobile cache
Simply, it is the application of the cache on “mobile” devices, where WP Rocket uses this term to mean phones only.
It is generally always advisable to enable it, provided the site is responsive.
2.2 – Cache expiry
The 10-hour lifespan of the page cache is a starting point.
If updates are frequent, it may be reasonable to lower the time, doing so gradually.
2.3 – Cache preloading
Preloading the page cache means that it is generated automatically by WP Rocket, regardless of user interactions.
If preloading is switched off, each page will need at least one visit before it can be placed in the cache. As a result, the first user will always see it more slowly.
2.4 – Link preloading
Link preloading improves the interaction time perceived by the user browsing the site.
If the user hovers over a link for more than 100ms, the HTML content of the corresponding page is preloaded in the background.
Browser limitation
Feature active only on Chrome and Chromium browsers.
Link preloading and scores
The option does not improve PageSpeed, Pingdom or GT Metrix scores, but it ensures smoother browsing.
2.5 – Reduced activity of the Heartbeat API
The Heartbeat API is a WordPress default. It provides a connection for transferring information in real time between server and browser. For example, it is involved in autosaves, admin notifications, locking posts while a user is editing them, and much more.
At an interval of the order of seconds, the API fires a series of commands using the admin-ajax.php file to communicate with the outside.
Although fundamental, it can lead to high CPU usage.
WP Rocket reduces its activity by default, limiting it to one start every 2 minutes (Reduce activity).
3 – A word on the user cache
This is a basic feature that is switched off, but it deserves a mention.
It consists of creating a separate cache for each user who logs in to the site. The option has no effect on external visitors.
It is therefore useful for sites that include private areas.
4 – It’s only the beginning
We have only covered the basic features of WP Rocket, without going into too much detail. Soon we will tackle aspects such as media, preloading, external content, and much more.
Stay tuned over the coming weeks; new articles are on the way!

















