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

How To Clear WordPress Cache

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

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

It occurs whenever you make some important changes on your website, especially when you update any of your articles.

If you clear your WordPress cache, your visitors will be able to see your new content almost immediately.

If you don’t do this, they will see your old, cached content instead.

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 website, 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 the 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.

How to clear WordPress cache - Kinsta

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

To do that, you 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.

How to clear WordPress cache - Cloudways

 

SiteGround

 

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

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

How to clear WordPress cache - SiteGround Site Tools

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 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.

How to clear WordPress cache - WPX Hosting - WPX Cloud

 

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.

How to purge cache - Cloudflare

 

KeyCDN

 

In the 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 guides recommend their readers clearing the cache using any WordPress caching plugin.

Other guides usually recommend their readers using W3 Total Cache or WP Fastest Cache. Still, from my own quite long experience, I can recommend you using WP Rocket.

Clearing cache memory with WP Rocket is really straightforward.

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

How to clear WordPress cache - WP Rocket

 

Clear The Cache Of Your Web Browser

 

This step is usually not necessary, but it is mentioned in other tutorials quite often.

However, there are situations when you clear WordPress cache, 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.