How To Clear Your WordPress Website’s Cache & CDN

Share on facebook
Share on google
Share on twitter
Share on linkedin
As a website administrator, you will often need to purge your cache and CDN in order to see the latest changes on your website. This guide will show you how to purge your front-end and primary website cache, as well as your CDN.

This article is a guide for customers on Hustly managed WordPress hosting packages, who are using our default performance setup. Users with WordPress setups similar to ours will find this guide useful as well.

As a website administrator, you will often need to purge your cache and CDN in order to see the latest changes on your website. This guide will show you how to purge your front-end and primary website cache, as well as your CDN.

If you are on a Hustly managed WordPress hosting plan, we would have pre-configured your WordPress cache, and set up a dedicated CDN for your website.

In order to clear your cache, you need to be logged into your WordPress website’s dashboard as an administrator.

Once logged in, you can access your website’s key cache settings from the top WordPress navigation panel.

NOTE: If you are unable to see any of the settings mentioned in this article, you likely have a different cache setup.

If you are a Hustly customer and are unable to find these settings in your setup, please email support for cache guidance specific to your setup. The exact setup depends on your chosen themes, plugins and setup and could differ in some cases.

Configure these settings yourself?

CAUTION!

These articles are meant for you to clear your cache yourself. Configuring you cache yourself can break your website, or make it inaccessible to visitors.

Please discuss configuring your cache yourself with your host, before making changes.

Step 1: Purging your front-end cache.
Hustly Websites by default use the 3rd party plugin Autoptimize for optimizing parts of your website’s front-end code.

Login to your WordPress dashboard as admin and look for the words “Autoptimize” on your top navigation panel.

Autoptimize Settings

This plugin caches many front-end elements of your website, such as html, css and javascript.  When you update front-end elements of your website, you will often need to clear this cache. Once you update your website, simply hover on the “Autoptimize” item on your top navigation panel, and purge the front-end cache by clicking “Delete Cache”.

Autoptimize Clear WordPress Cache

Step 2: Purging your primary website cache.
In addition to your front-end code, many other elements of your website, such as php outputs, are cached using a different method.

In most cases, the Hustly setup uses 3rd party plugins WP Super Cache or W3 Total Cache, to manage caching WordPress elements.

Login to your WordPress dashboard as admin and look for ONE of the 2 menu items : (i) “Delete Cache”  or (ii) “Performance”.

  1.     “Delete Cache”
    If you see this item, then your cache has been setup using the third party plugin “WP Super Cache”.

    How to clear your cache?
    To purge this cache, simply click “Delete Cache”.
  2. “Performance”, with a cube icon.
    If you see this item, then your cache has been setup using the third party plugin “W3 Total Cache”.

    How to clear your cache?
    To purge this cache, simply hover your mouse on the “Performance” button above, and click on “Purge All Caches”. With this setup, you can also purge caches for individual components of your website, such as the current page you are editing. To do this, hover on the purge modules option, and select the module you will like to purge (for e.g. the current page).

Step 3: Purging your CDN.

Sometimes purging your cache is not going to be enough, as some files can be stale with your CDN. If you have updated your website, and clearing all the caches as mentioned above do not update your website, you might need to purge your CDN.

How to clear your cache?

Simply login to your Hustly website manager app, select your website, and clear your CDN from the main dashboard, as shown in the screenshot below:

That’s it!

Yes – just 3 simple steps – (i) Clear your front-end cache, (ii) Clear your main cache and (iii) if needed, purge your CDN.

And most importantly :

Please always ensure that you hard-refresh your browser to view the latest updates on your website.

We hope you found this guide useful. Please let us know what you think in the comments section below.

Kevin

Kevin

WordPress Developer & Analytics Expert.

Leave a Reply