How to Clear WordPress Cache [Step by Step Guide] (2020)

How To Clear WordPress Cache

Website cache is a temporary memory which stores web documents and its media files. Caching of web files helps to load them faster. As you might guess, this feature is very important from the visitors’ point of view.

However, there are situations when you need to clear your WordPress cache.

In this article, you will learn 3 ways how to clear your WordPress cache.

 

How To Clear WordPress Cache

 

When you modify any content on your site or you add a new post to your site, you should clear the cache in order to make your changes publicly visible.

So, here’s how to clear the WordPress cache:

1. Clear The Cache On Your Server

The first stage of clearing WordPress cache is clearing the cache on your server.

In this guide, I will show you how to clear the cache on 4 various hosting providers.

Kinsta

If Kinsta is your hosting provider, you should go to your Kinsta dashboard and click Sites -> {choose your site from the list} -> Tools -> Clear cache.

Kinsta - clear the cache

Alternatively, you can clear the cache using WordPress plugin provided by Kinsta (you had to install this plugin just after completing migration to Kinsta).

In order to do that, you just need to log into your WordPress dashboard and click Clear Cache button in the top right corner of the window.

Kinsta - clear cache using WordPress plugin

Cloudways

If your site is hosted at Cloudways, you should click Servers -> Manage Services -> Purge.

Cloudways - clear cache

SiteGround

SiteGround provides 2 ways of clearing cache – using Site Tools and using their own WordPress plugin.

In case of Site Tools, you should go to tools.siteground.com, Speed -> Caching and click Flush All on every of the 3 tabs (Static Cache, Dynamic Cache, Memcached).

SiteGround Site Tools - clear cache 01

SiteGround Site Tools - clear cache 02

As it comes to clearing cache with SG Optimizer plugin, there are also 2 options.

You can choose SG Optimizer from the menu on the left and click the Purge Cache button on the right.

Alternatively, you can just log into your WordPress dashboard and click Purge SG Cache at the top of the screen without even going to the options of the plugin.

SG Optimizer - purge cache

As you can see on the screenshot above, there is also an option of automatic cache purge.

It’s quite useful, but you should also remember to clear the cache on your CDN (I will show you how to do it in the next part of this article).

WPX Hosting

WPX Hosting allows you to clear the cache only if you use their CDN called WPX Cloud.

WPX Hosting - WPX Cloud - clear cache

2. Clear The Cache On Your CDN

After clearing the cache on your web server, you should also clear the cache on your CDN (Content Delivery Network).

Cloudflare

If you use Cloudflare as a CDN, you should log into its dashboard and click Caching -> Purge Everything -> Purge Everything.

Cloudflare - purge cache

KeyCDN

In case of this service, you can easily find the information about clearing the cache in their documentation.

MaxCDN

MaxCDN also has a post about clearing the cache for the users of their service.

Amazon CloudFront

Clearing the cache in Amazon CloudFront is called “invalidating files.”

The documentation of this feature is available here.

3. Clear The Cache Using A WordPress Caching Plugin

This step is not necessary, but some guies recommend their readers clearing the cache using any WordPress caching plugin.

There are a few popular plugins of this kind, but from my experience, I can recommend you using WP Rocket.

Clearing cache memory with WP Rocket is very easy.

You just need to hover over WP Rocket button at the top of your WordPress dashboard and click Clear cache.

WP Rocket - clear the cache

 

Clear The Cache Of Your Web Browser

 

This step is rather not necessary, but it is mentioned in this type of guides quite often.

However, there are situations when you clear the cache of your server and your CDN, but your site doesn’t seem to be modified at all when you try to load it in your web browser.

If you encounter such an issue any time in the future, you will have to choose one of two options what to do about it.

You can clear your web browser’s cache, restart it, and load your website again.

Otherwise, you can load your site using a private window in your browser.

As it comes to activating private window, you can do this by using a shortcut Ctrl + Shift + N in case of Opera and Google Chrome, and Ctrl + Shift + P if you use Firefox.

If you’d like to clear your browser’s cache anyway, here are the instructions: for Opera, for Google Chrome, and for Firefox.