How to Clear Cache in WordPress: 6 Simple Methods

1. Clear Cache Using a Plugin

The easiest way to clear your WordPress cache is to use a plugin. There are several plugins available that can help you clear your cache quickly and easily. Some of the most popular plugins include WP Super Cache, W3 Total Cache, and WP Fastest Cache.

2. Clear Cache Using Your Web Host

If you’re using a web hosting provider, they may have their own caching system that you can use to clear your cache. Check with your web host to see if they offer a caching system and how to use it.

3. Clear Cache Using Your Browser

Most web browsers have a built-in feature that allows you to clear your cache. To do this, open your browser and go to the “Settings” or “Preferences” menu. Look for the “Privacy” or “History” section and click on the “Clear Cache” button.

4. Clear Cache Using FTP

If you have access to your WordPress files via FTP, you can manually delete the cache files. To do this, connect to your server via FTP and navigate to the “wp-content/cache” folder. Delete all the files in this folder and your cache will be cleared.

5. Clear Cache Using SSH

If you have access to your server via SSH, you can use the “rm” command to delete the cache files. To do this, connect to your server via SSH and navigate to the “wp-content/cache” folder. Then, run the command “rm -rf *” to delete all the files in this folder.

6. Clear Cache Using Your WordPress Dashboard

Some WordPress themes and plugins have their own caching systems that you can access from your WordPress dashboard. Look for a “Cache” or “Performance” section in your dashboard and click on the “Clear Cache” button.
[ad_1]

How to Clear Cache in WordPress: 6 Simple Methods

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.


Subscribe For more educational videos!
Hostinger Academy

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 out your 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 clear cache in WordPress websites is by installing plugins. The following section will explain how to clear your cache using four popular WordPress caching plugins and show how to clear 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.
    Litespeed cache dashboard on wordpress
  1. Choose the Toolbox menu, and the LiteSpeed Cache Toolbox window will appear. 
    litespeed cache toolbox window
  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.
    litespeed cache options
  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.
    purge by section on litespeed cache

In addition to accessing your WordPress dashboard, you can also clear the 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.

litespeed purge this page option

Clear Cache With WP Super Cache

WP super cache banner image

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.
    wp super cache dashboard on wordpress
  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.
    expiry time and garbage collection
  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. 
    change expiration option
  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 banner

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.
    total cache dashboard on wordpress
  1. Click the empty all caches button located at the top of the page.
    total cache dashboard on wordpress
  2. The system will begin clearing your WordPress cache. Once it’s over, you should see this message.
    all caches successfully emptied
  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.
    compatibility checker

Clear Cache With WP Fastest Cache

wp fastest cache banner

WP Fastest Cache is another popular caching plugin famous for its various optimization and caching 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.
    wp fastest cache options page on wordpress dashboard
  1. From there, tick the box next to the Cache System setting. Once you enable the caching, the plugin will regularly clear your cache.
    enable wp fastest cache on wordpress
  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.
    wp fastest options
  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.
    wp fastest cache clear all cache option
  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.
    cache timeout wizard settings
  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

cloudflare homepage

Apart from using WordPress caching plugins, you can use Cloudflare to clear your cache. 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.
    cloudflare dashboard
  1. Navigate to the Caching menu and click Configuration.
    cloudflare configuration
  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.
    custom purge

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.
    clear browsing data
  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. 

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

[ad_2]

How to Clear Cache in WordPress: 6 Simple Methods

Caching is an important part of WordPress performance optimization. It helps to reduce the load on your server and improve the speed of your website. However, if you make changes to your website, you need to clear the cache so that the changes can be seen by your visitors. In this article, we will show you how to clear cache in WordPress with 6 simple methods.

1. Clear Cache in WordPress Using a Plugin

The easiest way to clear cache in WordPress is by using a caching plugin. There are many caching plugins available for WordPress, such as WP Super Cache, W3 Total Cache, and WP Fastest Cache. All of these plugins have an option to clear the cache from within the WordPress admin area.

2. Clear Cache in WordPress Using FTP

If you don’t have a caching plugin installed, you can clear the cache in WordPress using an FTP client. To do this, connect to your website using an FTP client and navigate to the /wp-content/ folder. Look for the ‘cache’ folder and delete all the files inside it. This will clear the cache in WordPress.

3. Clear Cache in WordPress Using cPanel

If your web hosting provider offers cPanel, then you can easily clear the cache in WordPress using cPanel. First, you need to login to your cPanel account and then click on the ‘File Manager’ icon. This will open the file manager in a new window. Now, navigate to the /wp-content/ folder and look for the ‘cache’ folder. Select all the files inside it and delete them.

4. Clear Cache in WordPress Using SSH

If you have SSH access to your server, then you can clear the cache in WordPress using the command line. First, connect to your server using SSH and then navigate to the /wp-content/ folder. Now, run the following command to delete all the files inside the ‘cache’ folder:

rm -rf wp-content/cache/*

5. Clear Cache in WordPress Using a Plugin

If you don’t want to use any of the above methods, then you can also use a plugin to clear the cache in WordPress. There are many plugins available for this purpose, such as WP-Optimize and WP-Sweep. These plugins allow you to clear the cache with just a few clicks.

6. Clear Cache in WordPress Manually

If you don’t want to use any of the above methods, then you can also clear the cache in WordPress manually. To do this, you need to access your website’s root folder using an FTP client or cPanel. Once you are in the root folder, look for the ‘cache’ folder and delete all the files inside it. This will clear the cache in WordPress.

We hope this article helped you learn how to clear cache in WordPress. You may also want to see our guide on how to speed up WordPress with caching plugins.

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

GSTIN is 03EGRPS4248R1ZD.

Contact
Jassweb, Rai Chak, Punjab, India. 143518
Item added to cart.
0 items - 0.00