WP Rocket is a very popular caching plugin for WordPress websites. If you are a beginner to the plugin and don’t know how to clear caches in the plugin, you can have a look at this article to get a complete idea about clearing different types of caches in WP Rocket. We will discuss what WP Rocket cache is, its benefits, and how to clear it properly without affecting your website functionality or disrupting the user experience on your WordPress-powered website.
What is WP Rocket Cache?
Just like any other caching plugin, WP Rocket also caches your web pages in order to be served as static HTML file to improve your website speed. In addition to caching the HTML versions of your files, WP Rocket also creates the minified and/or combined versions of your resources, such as the CSS and JavaScript files. All these are separately stored in your “wp-content/cache/wp-rocket” folder. This allows WP Rocket to serve your content at blazing speed.
Why should you clear the WP Rocket cache?
There are several reasons why you should clear your WP Rocket cache. Some of them are listed below.
- To see the changes you made to your website on the live version.
- If you activated or deactivated any themes or plugins on your website.
- After upgrading to a major release of the WP Rocket plugin.
- Because you are asked to clear the cache by the plugin itself on your WordPress backend.
Steps to clear cache in WP Rocket
Like many other caching plugins, WP Rocket simply adds an item to the top bar of your WordPress website. Just hovering over the WP Rocket menu item in the admin bar will bring many functions including clearing the cache. Here is how it looks like.
There you can find different options such as Clear Cache, Purge OPcache, etc. to clear your website caches. Clear cache refers to clearing all your website caches that have been generated over time. Purge OPcache option will clear the PHP OPcache files on your server. So, whenever you made some significant changes to the code or design of your website, just clicking on the Clear Cache, the link will clear all your website caches and deliver fresh pages thus generating new caches.
If you want to go the hard way, there is one more way you can clear the WP Rocket cache from the WordPress backend. It is by visiting the settings pages of the WP Rocket from Settings > WP Rocket section on the left sidebar in your backend.
You will see such a section on the right where there are several buttons just like on the menu. You can use them to clear the caches as well as Regenerate Critical CSS files that have been generated by the plugin. If you don’t know, Critical CSS files should be regenerated once you made any design changes to your website. If not, sometimes, you may see broken sections or designs.
FAQs
If the WP Rocket Cache is not clearing, there could be multiple reasons why this is happening. One of the easiest solutions is to deactivate the plugin and reactivate it again. If it does not seem to fix the problem, check the folder permissions on your server and make sure that they are correctly configured. If none of it is working. You can try to manually clear the cache by deleting the “/wp-content/cache/” folder.
This usually happens when there is a problem with the minification feature of the plugin. The JavaScript modification feature automatically minifies the JavaScript available on your web pages. When each one of your pages uses a dynamic JavaScript for some reason, WP Rocket will create separate caches for each one of them, making the folder very large.
So make sure that none of the plugins are conflicting with WP Rocket, and try disabling the minify feature to confirm this is what causing the trouble. For better clarification, you can contact their support.
Yes. WP rocket automatically clears your WordPress cache on certain actions and hooks. For example, the WP rocket cache will be automatically cleared every 10 hours in order to make sure that the website is performing as expected.
In addition to that, whenever you create or update a post. Deactivate a plugin. Or make any significant changes to your website settings. The plugin will automatically clear the cache or will prompt you to manually do it.