Home » Setting WordPress » Purge Multiple Caches in WordPress: Refresh a Website Cache

Purge Multiple Caches in WordPress: Refresh a Website Cache

The Right Order of Purging Multiple Caches

This article will cover how to purge multiple types of caches in a WordPress website simultaneously. Caching is crucial for website performance optimization, as storing a static version of your site reduces the time it takes to load. However, there are times when you may need to clear these caches to see the most recent version of your site. For example, when adding content, updating visuals, and more. This guide will provide a step-by-step process to purge multiple caches, specifically the Clearfy Cache WordPress plugin, Redis Object cache, and Cloudflare CDN cache.

The current article is "5.19. Purge Multiple Caches" of our Complete SEO Guide Box.
Previous Article: 5.18. Selecting Plugins. Next Article: 5.20. Back up WordPress

The First Step: Purging Clearfy Cache

The initial step to purge multiple caches in a WordPress website involves dealing with Clearfy Cache, a handy plugin widely used in WordPress sites. The role of Clearfy Cache revolves around holding static versions of your web pages, decreasing the number of PHP calls necessary for the functioning of your website. Clearing this cache primarily ensures that all recent changes you’ve implemented become instantly visible at the most immediate and accessible cache level.

If you also aggregated and minified the CSS and JavaScript files, these will be purged from Clearfy Cache.

Proceeding to Redis Cache

After you’ve dealt with Clearfy Cache, it’s time to purge Redis Cache. Redis is an open-source data structure store acting as a cache, database, and message broker. Within WordPress, Redis functions as a comprehensive page caching system or an object cache backend. By purging the Redis Cache after the Clearfy Cache, you ensure that data produced dynamically or retrieved through database queries is up-to-date.

The Final Stage: Clearing Cloudflare CDN

Now that you’ve successfully purged the application and database level caches, the final stage in our guide to purging multiple caches in a WordPress website is to clear the cache of a CDN like Cloudflare. CDNs like Cloudflare speed up the delivery of your website’s content by caching static content, including HTML pages, JavaScript files, stylesheets, and images, at various global points. Clearing this cache ensures that users across the globe are served the latest version of your website’s static content.

Since Clearfy Cache and Redis Cache regenerated the pages, their updated version can now be re-fetched by the CDN network. Now, users over the globe should fetch the updated version of your website.

Clear Browser Cache

Since we use browser cache settings in Cloudflare, you should also clear all the cached settings in your browser to see the most updated version of your website.

How to Purge All the Multiple Caches in a WordPress Website

Clearing Clearfy Cache

Login to your WordPress Dashboard.
On the top menu admin bar, hover with the mouse cursor over [Clearfy], then click on [Clear all cache].

Clearing Redis Cache

While in the WordPress Dashboard, on the top menu admin bar, hover with the mouse cursor over [Object Cache], then click on [Flush Cache].

Clearing Cloudflare CDN Cache

An essential step in purging multiple caches in WordPress is your CDN.

Log in to Cloudflare.
While on the left side menu bar in the [Websites] tab, click on your site domain button.
On the left side menu bar, click on [Caching].
Then, under [Caching], click on [Configuration].
In the “Purge Cache” section, click on [Purge Everything].

Clear your browser cache

The last step in our “Purge Multiple Caches in a WordPress Website” guide is to clear your Web Browser cache to see the latest version.
Note: For visitors, the browser cache will be cleared when the timeout set in Cloudflare CDN is reached.

The current article is "5.19. Purge Multiple Caches" of our Complete SEO Guide Box.
Previous Article: 5.18. Selecting Plugins. Next Article: 5.20. Back up WordPress

 

If you find any mistakes or have ideas for improvement, please follow the email on the Contact page.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.