WordPress

How do I clear the cache in WordPress?

This brief article explains how to clear the cache in WordPress sites.

When you open a website, your computer or device downloads code, media, and other components, making the website operable. This download process requires resources and download time.

To avoid excessive resource waste and time, there is something called Cache Memory. The Cache stores the code, media, and website components locally on your computer, so when you open the same website again, these components load locally without the need to be downloaded again.

While the cache memory is a great function to increase site performance, it may be problematic in some cases. For example, if you make changes on your website, and your visitors have cached some of your content, they may not see the changes you made until they clear their browser cache or you clear your site cache.

In other words, clearing the cache is useful when you make changes on your site for your visitors to see them.

This WordPress tutorial shows how to clear the cache in WordPress and browsers to see the last version of a website. All instructions included in this article include screenshots, making it easy for any WordPress user to follow them.

Content table:

  • How to clear the cache in Firefox (Client side)
  • How to clear the cache in Google Chrome (Client side)
  • Clearing the cache in WordPress (Server side)

Clearing the cache in Firefox:

To clear the cache in the Firefox browser, on the right top corner, find the Application Menu icon: .

Press the icon (three lines icon), and on the displayed menu, press Preferences as shown in the image below.

On the configuration window which shows up, find “Privacy & Security” on the left menu and press it.

Scroll down and press the Clear Data button shown below on the next screen.

Press the Clear button to finish clearing your browser cache on the Clear Data prompting window.

Now, when opening your WordPress site, it will download new data, including the last changes.

Clearing the cache in Chrome:

If you are using Google Chrome, find the three dots icon to show the options menu on the right top corner. Then press the More tools option, and on the displayed additional options, press Clear browsing data as shown in the following image.

Finally, press the Clear data button on the prompting Clear browsing data window.

Now you can open your WordPress website, downloading its last version, including all changes.

Clearing and configuring the cache from WordPress:

You can clear and configure your site cache from your WordPress dashboard if you are the site administrator.

There are many available plugins to clear the cache in WordPress. For this tutorial, I will show you how to use the plugin named WP-Optimize.

To begin, log in to your WordPress dashboard and on the left menu, move your mouse pointer over Plugins, then press Add New (Plugins>Add New).

To list available plugins to clear your cache, on the keyword search field, type “clear cache,” when the plugin WP-Optimize- Cache, Clean, Compress shows up, press the Install Now button as shown in the screenshot below.

Once installed, enable the plugin by pressing the Activate button as shown below.

After enabling the plugin, open the cache feature by moving your mouse pointer over WP-Optimize, and among the displayed options in the submenu, press Cache (WP-Optimize>Cache).

When opening this plugin for the first time, you will see the following text, press the Dismiss button to continue.

The first option on the Page cache tab shown in the screenshot below allows you to enable page caching. As said in the introduction of this article, this feature is essential to improve your site performance. Please enable it, and when you do, an option to immediately purge or clear your cache will show up.

After enabling the page cache feature, a Purge cache new button will show up. If you want to clear your cache immediately, press it.

After pressing the button, your cache is cleared.

Scroll down to configure your cache settings. You will see three options:

  • Generate separate files for mobile devices: You can enable this option if your site serves different content for mobile devices. You can ignore this.
  • Serve cached pages to logged-in users: This option is helpful if all your content is served in the same way for all users. You can ignore this.
  • Cache lifespan: Here, you can define when your cache is cleared for your visitors.

Once you configure your cache settings, press the Save Changes button to apply them.

That’s all, now your WordPress site cache has been cleared and the feature configured according to your needs.

Other plugin alternatives to clear the cache in WordPress:

WordPress offers many plugins to clear and manage your cache. Some of which are listed below.

  • Clear Cache for Me: Unlike other plugins, Clear Cache for Me detects widget updates.
  • LiteSpeed Cache: As the plugin explained previously in this tutorial, this one has additional features to optimize your website performance.
  • WP Fastest Cache: Another plugin to clear and configure your site cache feature, increasing its performance.

Conclusion:

As shown in this article, clearing the cache in WordPress is a straightforward task. All WordPress users can do this task by following instructions like the explained above. Take into consideration other plugin alternatives that are very similar to the plugin described in this tutorial; feel free to try any of them. Knowing how to clear your site cache is mandatory for any WordPress administrator who changes the site. If properly configured, this can also improve your site performance and situation before search engines.

Thank you for reading this article; I hope it was helpful. Keep following us for more professional WordPress tutorials.

About the author

David Adams

David Adams is a System Admin and writer that is focused on open source technologies, security software, and computer systems.