How to Clear Cache in WordPress: 6 Simple Methods (2024)

WordPress Optimization

Jul 22, 2024

Nabilla R.

9min Read

How to Clear Cache in WordPress: 6 Simple Methods (1)

Having a fast-loading site is essential for user experience and SEO (Search Engine Optimization). Websites with optimized speed tend to have lower bounce rates, which results in higher engagement and conversions. Google also favors fast websites and ranks them higher on the search results page.

Many components affect website speed, from coding standards to the hosting provider. Consequently, there are many ways to speed up site performance, and web caching is one of the most effective.

Web caching stores copies of your site data for future requests. Instead of downloading original data from the server, web caching fetches these cache files to your website visitors. Thus, your content is displayed more quickly.

However, cached files can expire – this will prevent visitors from seeing the updated version of your website.

To solve this issue, we will show you how to clear cache in WordPress using popular plugins. We will also include steps to remove the browser cache for more effective results. Let’s start with an explanation of what cache is and how it works.

Clear WordPress Cache – Video Tutorial

Learn how to clear WordPress cache to optimize your website speed with this video tutorial.

What Is WordPress Cache

A cache is a temporary storage location for static content, such as HTML, Javascript, CSS, and media files.

Whenever you visit a website, your browser sends requests to the site’s server. It might take a minute or two for the server to fetch and display the requested content – web caching makes this process faster.

Web caching downloads the site’s static content and stores it as cache files. As a result, your browser can create fewer requests to the server as it already has the cached content.

There are two main systems of web caching:

  • Client-side caching – also known as browser cache, this type of caching stores the static content in local storage. When a user revisits the website, it will load faster since the cached version is already stored in the browser cache folder.
  • Server-side caching – has a similar concept to client-side caching. However, it uses a server to store the cached data of a website. Server cache can store various site data from multiple databases, making it a great solution for high-traffic websites.

All in all, web caching reduces requests to your server by storing a static version of your website – thus, increasing your site performance.

It also reduces your network resources since processing fewer requests requires less bandwidth, which can benefit websites with limited resources.

How to Clear Cache in WordPress

Sometimes you change and tweak your WordPress website, but your content is not updating on the front-end. This might happen because your WordPress server is still displaying the cached version of your pages.

Fortunately, clearing WordPress cache usually fixes this issue. When your website cache is empty, the caching system can store the updated data and display it to your visitors.

The easiest way to purge cache in WordPress websites is by installing plugins. The following section will explain how to clear cache using four popular WordPress caching plugins and show how to flush WordPress cache when your domain is pointed to Cloudflare.

Clear Cache with LiteSpeed

Use the LiteSpeed Cache for WordPress (LCWP) plugin to efficiently manage how your cache is stored and used. This caching plugin uses LiteSpeed server cache to improve site loading time and comes with LiteSpeed exclusive optimization features.

All of Hostinger’s web hosting plans, including WordPress-optimized ones, are LiteSpeed-powered and the plugin comes pre-installed in every hosting account. However, if you’re using a different web host, simply navigate to the WordPress plugin directory to download the plugin.

The LiteSpeed Cache plugin offers multiple ways to clear WordPress cache. From setting automatic cache purge based on specific conditions to including specific website URLs for a scheduled purge. Follow the instructions below for that:

  1. Once you install and activate the plugin, access your WordPress admin dashboard. Then, go to LiteSpeed Cache.
    How to Clear Cache in WordPress: 6 Simple Methods (5)
  1. Choose the Toolbox menu, and the LiteSpeed Cache Toolbox window will appear.
    How to Clear Cache in WordPress: 6 Simple Methods (6)
  1. There are various types of cache you can purge, from page cache to CSS/JS cache. Choose which type of cache purge you want to perform.
    How to Clear Cache in WordPress: 6 Simple Methods (7)
  1. If you want to clear your WordPress cache entirely, choose Purge All. Note that it won’t delete critical data on your WordPress website – you can go ahead and clear the cache.
  2. However, if you only want to empty the cache from certain parts of your site, scroll down to the Purge By section. From there, input your content using a category, tag, or URL.
    How to Clear Cache in WordPress: 6 Simple Methods (8)

In addition to accessing your WordPress dashboard, you can also flush WordPress cache of a specific page by visiting it – just keep in mind that you need to log in as an administrator. Simply hover over the LiteSpeed icon on your admin bar and choose Purge this page.

Clear Cache With hPanel

Hostinger’s hPanel is a custom control panel that lets you clear cache easily. Here are the steps to do so:

  1. On your hPanel homepage, go to AdvancedCache Manager.
How to Clear Cache in WordPress: 6 Simple Methods (10)
  1. Toggle the Automatic cache option on so the system can clear the cache every 30 minutes.
  2. Once toggled on, you’ll see a popup message showing your updated cache status.
How to Clear Cache in WordPress: 6 Simple Methods (11)

You can also purge manually by clicking the Purge All button. Once done, you’ll see a success message indicating that all caches have been cleared.The next option is to purge a specific URL. To do this, add your preferred URL to the field and click the Purge button.

Clear Cache With WP Super Cache

WP Super Cache modifies the caching system in your WordPress site using three caching modes: WP caching, Simple, and Expert.

The Expert and Simple methods serve super cached files, so they are excellent solutions for high-traffic websites. The only difference is that the Expert method involves rewriting rules in your .htaccess file for faster performance. Meanwhile, the WP caching method caches logged-in users, such as visitors who leave comments or store personal information on your site.

This WordPress caching plugin can also flush cache files with a single click. Simply follow the steps below to do so:

  1. From your WordPress admin dashboard, go to Settings -> WP Super Cache.
    How to Clear Cache in WordPress: 6 Simple Methods (13)
  1. In the WP Super Cache Settings page, scroll down to the Delete Cached Pages section. Then, click on the Delete Cache button.

Additionally, the WP Super Cache plugin provides a wide array of caching features, with the most prominent feature being garbage collection. Users can set a cache timeout, and the system will clear cache files accordingly. To do so, follow the instructions below:

  1. Go to Settings -> WP Super Cache -> Advanced. Then, scroll down to the Expiry Time & Garbage Collection.
    How to Clear Cache in WordPress: 6 Simple Methods (14)
  1. Set your cache timeout and interval as you need.

If you don’t update your WordPress site often, setting it to 3600 seconds would be ideal. However, owners of busy websites with a lot of dynamic content, like an eCommerce site, should set it to 600 seconds to prevent slow performance.

  1. Next, click Change Expiration to save the changes.
    How to Clear Cache in WordPress: 6 Simple Methods (15)
  1. If you want to disable garbage collection, simply set the cache timeout to 0 seconds.

Clear Cache With W3 Total Cache

W3 Total Cache is one of the most popular caching plugins known for its customization and bandwidth-saving features. This plugin saves up to 80% bandwidth usage via minification, feed optimization, and HTTP compression. It offers multiple caching abilities, including browser, database, and site cache.

This caching plugin also comes with AMP support that helps improve SEO performance. Moreover, users can use its WP-CLI support command interface to perform various tasks, such as cache purging and query string updating.

Here’s how to clear WordPress cache using W3 Total Cache:

  1. Once you install this caching plugin, access your WordPress admin area and go to Performance -> Dashboard.
    How to Clear Cache in WordPress: 6 Simple Methods (17)
  1. Click the empty all caches button located at the top of the page.
    How to Clear Cache in WordPress: 6 Simple Methods (18)
  2. The system will begin clearing your WordPress cache. Once it’s over, you should see this message.
    How to Clear Cache in WordPress: 6 Simple Methods (19)
  1. Apart from the empty all caches button, there are other buttons for deleting multiple cache types, including clearing only the Memcached cache from the database. Simply click on the button to start the action accordingly.
    How to Clear Cache in WordPress: 6 Simple Methods (20)

Clear Cache With WP Fastest Cache

WP Fastest Cache is another popular caching plugin famous for its various optimization and cache management features, such as minifications, cache preloading, and GZIP compression. It comes with an intuitive dashboard and uses mod_rewrite to provide the fastest caching solution.

Users can enable cache timeout to save the hassle of clearing the cache manually. The plugin can also automatically delete all cache files whenever a new page or post is published – this prevents outdated data from being displayed on your WordPress site.

Follow these steps to perform automated cache purging with WP Fastest Cache:

  1. From your WordPress admin area, navigate to WP Fastest Cache. It will open the WP Fastest Cache Options page.
    How to Clear Cache in WordPress: 6 Simple Methods (22)
  1. From there, tick the box next to the Cache System setting. Once you enable the caching, the plugin will regularly clear your cache.
    How to Clear Cache in WordPress: 6 Simple Methods (23)
  1. If you want to clear cache files whenever a post or a page is published, simply check the New Post and Update Post settings.
    How to Clear Cache in WordPress: 6 Simple Methods (24)
  1. To enable more features, go ahead and tick the box on each setting. Be sure to click the Submit button to save changes.

To manually clear your WordPress site’s cache:

  1. Go to WP Fastest Cache and select the Delete Cache tab.
  2. From there, press the Delete Cache button.
    How to Clear Cache in WordPress: 6 Simple Methods (25)
  3. Meanwhile, choose the Delete Cache and Minified CSS/JS button if you have just edited CSS or JavaScript files.
  4. At the bottom of the page, you will find the Timeout Rules setting. Simply click Add New Rule to set an expiry time.
    How to Clear Cache in WordPress: 6 Simple Methods (26)
  1. A pop-up window will appear. There, you can configure the condition of pages or posts you want to cache and how often you would like to delete them. Click Save to add the rule.

Clear Cache with Cloudflare

Apart from using WordPress caching plugins, you can use Cloudflare to purge cache in WordPress. It’s a content delivery network (CDN) service that comes with numerous features to improve your website performance, including cache control, fast cache purge, and web cache protection.

In order to set up the CDN, clear your WordPress cache with this method, and point your domain to Cloudflare. Those who have active Cloudflare services from Hostinger won’t need to point domains to Cloudflare nameservers, as these changes will be done automatically.

If your WordPress host doesn’t automatically set Cloudflare for you, follow these steps below:

  1. Create a Cloudflare account.
  2. Add your domain name and wait for the system to identify your DNS records.
  3. Select a plan level.
  4. When Cloudflare presents the required nameservers, simply copy the values and update your nameservers from your hosting account dashboard.

Once your domain is pointed to Cloudflare, follow these steps to clear your WordPress cache:

  1. Log into your Cloudflare dashboard and click on your WordPress site’s domain.
    How to Clear Cache in WordPress: 6 Simple Methods (28)
  1. Navigate to the Caching menu and click Configuration.
    How to Clear Cache in WordPress: 6 Simple Methods (29)
  1. Choose your preferred method of clearing the cache. To clear all cache files, click on the Purge Everything button. If you want to select specific pages, choose Custom Purge and fill out the pages you want to purge.
    How to Clear Cache in WordPress: 6 Simple Methods (30)

Clear Cache in a Browser

Clearing your own browser cache also helps troubleshoot loading and formatting issues. It will remove outdated files, allowing your browser to fetch a new version of your site. Doing so can also fix server-related issues, including the 502 bad gateway and 504 gateway timeout.

Keep in mind that removing the browser cache might also delete your browser data, such as bookmarks and setting preferences. Thus, be sure to export your data from the browser and import it back once you finish clearing the cache.

The following steps will show you how to clear the cache in Google Chrome. Note that the same steps apply to other browsers as well.

  1. Open your Chrome application.
  2. Click on the three-dot (⋮) menu at the top right corner of your screen.
  3. Choose More tools -> Clear browsing data.
  4. It will take you to a page where you can perform Basic or Advanced cache clearing.
    How to Clear Cache in WordPress: 6 Simple Methods (32)
  1. Choose your preferred method, set the time range, and check the boxes as you need. Leave the Passwords and other sign-in data option unchecked to keep your login credentials.
  2. Finally, click on the Clear data button.

Conclusion

Caching is a great way to make your website load faster – it stores copies of your site’s static content for future reusing. However, outdated cache files can prevent visitors from seeing new changes on your website.

Luckily, clearing your website cache can solve this problem. This tutorial has shown you how to clear cache in WordPress using popular caching plugins. If removing the WordPress server cache doesn’t solve the problem, try clearing your browser cache as well.

Note that once the cached files are removed, browsers and servers will need some time to download them again – which might result in a slightly longer loading time compared to before.

We hope this article has been helpful. If you have any questions about the WordPress cache, feel free to leave a comment.

Other WordPress must-knows

What is WordPress
How to Backup a WordPress Website
WordPress Malware Removal Guide
How to Optimize Images in WordPress
How to Install WordPress
Guide to WordPress Security

How to Clear Cache in WordPress FAQ

After understanding how to clear cache in WordPress, here are some frequently asked questions.

How Often Should I Clear Cache in WordPress?

The frequency to clear cache in WordPress depends on how often you update the website. We recommend purging WordPress cache at least once a week to keep it up-to-date and secure. However, you can also clear cache every day if you make hourly to daily updates.

How to Clear Cache Without a WordPress Plugin?

Clearing cache without a WordPress plugin is possible and can be done manually. To do so, you need to delete the content of your website’s wp-content/cache folder using an FTP client such as FileZilla or by accessing your server directly.

What Are the Benefits of Deleting Cache?

Clearing cache is an essential maintenance practice for any web user. It helps to free up space on your device and maintain web browser performance while allowing access to the latest content from websites you visit frequently.

How to Clear Cache in WordPress: 6 Simple Methods (33)

The author

Nabilla R.

Nabilla is a website hosting and development enthusiast. She loves to share her knowledge with others in order to help them grow their online presence. When she's not busy writing, Nabilla enjoys exploring nature and going on adventures. She is passionate about helping people achieve their online goals.

More from Nabilla R.

How to Clear Cache in WordPress: 6 Simple Methods (2024)
Top Articles
Access Control With Apple Wallet | Kisi
50 Tips for Grocery Shopping - zen habits
Chs.mywork
NYT Mini Crossword today: puzzle answers for Tuesday, September 17 | Digital Trends
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
4-Hour Private ATV Riding Experience in Adirondacks 2024 on Cool Destinations
Http://N14.Ultipro.com
Phone Number For Walmart Automotive Department
Chalupp's Pizza Taos Menu
Zitobox 5000 Free Coins 2023
Www Thechristhospital Billpay
Mivf Mdcalc
Ktbs Payroll Login
4Chan Louisville
Obituary | Shawn Alexander | Russell Funeral Home, Inc.
Yesteryear Autos Slang
Rosemary Beach, Panama City Beach, FL Real Estate & Homes for Sale | realtor.com®
Premier Reward Token Rs3
Salem Oregon Costco Gas Prices
The Pretty Kitty Tanglewood
Shopmonsterus Reviews
Shiftselect Carolinas
Maxpreps Field Hockey
A Person That Creates Movie Basis Figgerits
Timeline of the September 11 Attacks
Papa Johns Mear Me
New Stores Coming To Canton Ohio 2022
Goodwill Of Central Iowa Outlet Des Moines Photos
Wku Lpn To Rn
Craigslist Fort Smith Ar Personals
The Collective - Upscale Downtown Milwaukee Hair Salon
Cfv Mychart
Bend Missed Connections
Housing Assistance Rental Assistance Program RAP
Save on Games, Flamingo, Toys Games & Novelties
Nacho Libre Baptized Gif
Whitehall Preparatory And Fitness Academy Calendar
20+ Best Things To Do In Oceanside California
Frcp 47
Daly City Building Division
Citibank Branch Locations In Orlando Florida
888-822-3743
Pathfinder Wrath Of The Righteous Tiefling Traitor
Petra Gorski Obituary (2024)
Elven Steel Ore Sun Haven
CrossFit 101
The Sports Academy - 101 Glenwest Drive, Glen Carbon, Illinois 62034 - Guide
House For Sale On Trulia
La Fitness Oxford Valley Class Schedule
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 5993

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.