How to Clear Cache in WordPress

Hesam Seyedi ● April 4, 2025

Introduction

Is your WordPress site showing outdated content—even after updates?

You’re not alone. One of the most common headaches WordPress users face is making a change… and then not seeing it live. That’s usually a caching issue.

Caching helps your website load faster, but when those saved files get stale, they can break layouts, hide recent changes, and confuse visitors. The fix? Clear the cache.

If you’ve ever wondered how to clear cache in WordPress without breaking anything, you’re in the right place. This step-by-step guide will walk you through every method—whether you’re using a plugin, hosting service, or doing it manually.

Ready to fix it for good? This guide shows you exactly how to clear your WordPress cache—safely and quickly. Whether you’re using a plugin, your hosting dashboard, or doing it by hand, you’ll find the right method here.

Stop wasting time wondering why updates aren’t showing. Clear your cache, speed things up, and stay in control of your site.

What is Cache in WordPress

What Is Cache and How Does It Work in WordPress?

Before you clear it, you need to understand what it is.

Cache is a temporary storage system that saves copies of your website’s data—like HTML, images, CSS, and JavaScript.

The goal? Faster load times for repeat visitors and reduced server stress.

There are a few types you’ll run into:

  • Browser Cache: Saved on your device. Helps load previously visited sites faster.
  • Server Cache: Saved on your host’s server. Includes page, database, and object cache.
  • Plugin Cache: Controlled by WordPress caching plugins. Offers custom rules and quick purge options.
  • CDN Cache: Used by content delivery networks like Cloudflare. Stores site data on global servers for faster delivery worldwide.

Caching boosts speed—but when that stored data is outdated, your visitors see old content. That’s when knowing how to clear cache in WordPress becomes essential.

When and Why Should You Clear Cache in WordPress

When and Why Should You Clear Cache in WordPress?

Now that you know what cache does, the next question is: When should you clear it? While caching improves performance, it can also cause confusion. If your site looks broken, updates aren’t showing, or layout changes seem to vanish—stale cache is often the culprit.

Here are common moments when clearing cache is a smart move:

  • After making content or design updates (like editing a page or changing your theme)
  • After updating plugins or WordPress core
  • When troubleshooting broken layouts or formatting issues
  • Before launching a redesigned page or site 

Keep in mind: clearing cache forces your site to rebuild those files—which may slow things down temporarily. That’s why it’s best to clear only when needed, not on a daily basis.

With that in mind, let’s look at the exact steps for clearing cache—starting with the most common one: your browser.

clear your browsing cache

How to Clear Your Browser Cache (Step-by-Step)

Sometimes, the issue isn’t your website—it’s your browser.

Your browser stores static files like stylesheets, images, and scripts to speed up repeat visits. But if those files are outdated, you won’t see recent changes—even if they’re live on your site.

Before messing with plugins or hosting settings, clearing your browser cache is a quick first step.

Here’s how to do it in major browsers:

Google Chrome

  1. Click the three-dot menu in the top-right.
  2. Go to More Tools > Clear browsing data.
  3. In the popup, select “Cached images and files.”
  4. Set the time range to “All time”, then hit Clear data.

Firefox

  1. Click the menu button > History > Clear Recent History.
  2. Select “Everything” in the time range.
  3. Check “Cache”, then click OK. 

Safari (Mac)

  1. In the top menu, go to Safari > Preferences > Privacy.
  2. Click “Manage Website Data” > Remove All. 

Microsoft Edge

  1. Click the ⋮ (three-dot menu)  > Settings > Privacy & services.
  2. Under Clear browsing data, click Choose what to clear.
  3. Select “Cached images and files”, then hit Clear now.

Once cleared, refresh your site.

If updates still don’t show, the issue may be on the server side. Let’s move on to clearing your WordPress cache.

How to Clear WordPress Cache Using a Plugin

How to Clear WordPress Cache Using a Plugin

If clearing your browser cache didn’t solve the issue, it’s time to check your WordPress cache.

Many WordPress sites use caching plugins to improve load speed. These tools create static versions of your pages so your site doesn’t have to reprocess everything with each visit.

But here’s the catch: those cached files can get stuck, showing outdated versions of your site—even if you’ve made updates.

Luckily, most caching plugins make it easy to clear cache with just a few clicks. Here’s how to do it with the most popular ones:

Simple, lightweight, and beginner-friendly.

  • In your dashboard, look for the “Delete Cache” button in the top admin bar.
  • Hover and click “Clear All Cache” to purge the entire site.
  • To clear a single page, visit it and click “Clear Cache of This Page.”

Want automatic cache purging? Go to Settings > WP Fastest Cache and enable the options under New Post and Update Post.

Great for high-traffic sites. Here’s how to clear it:

  • Go to Settings > WP Super Cache.
  • Scroll down to the “Delete Cached Pages” section and click Delete Cache.
  • Or use the one-click option in the WordPress admin bar.

You can also enable garbage collection to clear cache at regular intervals.

A powerful plugin with lots of settings—but cache clearing is easy:

  • In the dashboard, go to Performance > Dashboard.
  • Click “empty all caches” at the top.
You can also selectively purge object, database, or browser cache from the same menu if needed.

Ideal if your host runs on LiteSpeed server.

  • Go to LiteSpeed Cache > Toolbox.
  • Click Purge All to clear every cache layer.

Need more control? Use the Purge By section to clear specific tags, URLs, or categories.

If you’re using WP Rocket, cache clearing is instant:

  • From the WordPress admin bar, hover over WP Rocket and click Clear Cache.
  • To clear a single page or post, go to the page and select “Clear this cache.”

Bonus: WP Rocket also lets you clean up your database, minify scripts, and lazy-load images—all in one dashboard.

How to Clear WordPress Cache from Your Hosting Provider

How to Clear WordPress Cache from Your Hosting Provider

If you’re not using a caching plugin—or even if you are—your hosting provider might be running server-side caching in the background.

This type of cache is managed by your web host and often includes things like page cache, object cache, and opcode cache. It’s fast and efficient, but here’s the catch: you might not even know it’s there until something breaks.

So if plugin cache is clear but your changes still aren’t showing, check your hosting dashboard next. Here’s how to do it on popular platforms:

  • Log into your WordPress dashboard.
  • In the top admin bar, look for the “Caching” menu.
  • Click “Purge All” to clear your site’s cache instantly.
  • Head to your SiteGround Site Tools dashboard.
  • Navigate to Speed > Caching.
  • Under Dynamic Cache, find your domain and hit Flush Cache.
  • Using their SG Optimizer plugin? You’ll also see a “Purge SG Cache” button in your WordPress admin bar.
  • Log in to hPanel.
  • Go to Advanced > Cache Manager.
  • Click Purge All or enter a specific URL to target individual pages.
  • In your WordPress dashboard, click on the WP Engine menu in the sidebar.
  • Go to the Caching tab.
  • Click “Clear All Caches” to wipe all layers, including object and page cache.

Each host handles caching a bit differently, but the goal is the same: serve content faster. Just don’t forget to clear it when changes aren’t showing up.

Still seeing outdated content? Let’s talk about another layer that could be causing it: your CDN.

How to Clear WordPress Cache from a CDN (Like Cloudflare)

If your site uses a CDN (Content Delivery Network), there’s one more place cache might be hiding: edge servers.

CDNs like Cloudflare store static copies of your site on servers around the world. This speeds up delivery for global visitors—but just like browser or server cache, it can sometimes serve outdated files.

Already cleared your plugin and hosting cache but still seeing old content? Time to clear your CDN cache.

How to Clear Cache in Cloudflare

  1. Log in to your Cloudflare dashboard.
  2. Click on your website’s domain.
  3. Navigate to Caching > Configuration.
  4. Choose one of two options:
    • Purge Everything – Clears the entire cache across all edge servers.
    • Custom Purge – Target specific URLs or file types. 

You should see a confirmation message once the cache is cleared. Give it a few seconds, then refresh your site.

Pro tip: Use “Custom Purge” when testing page-level changes to avoid slowing down your whole site while the cache rebuilds.

Still not seeing the changes after all that? There’s one last trick left: manually clearing cache via FTP or file manager—no plugin needed.

Let’s walk through that next.

How to Manually Clear WordPress Cache (No Plugin Needed)

If plugins and dashboards aren’t doing the job—or if you prefer a hands-on approach—you can clear your cache manually. This method is especially useful when troubleshooting deeper issues or working on a staging site.

Important: Only use this if you’re comfortable accessing your site via FTP or your host’s file manager. One wrong move in the wrong folder can cause problems.

Clear Cache via FTP or File Manager

  1. Connect to your site using an FTP client (like FileZilla) or through your hosting control panel’s File Manager.
  2. Navigate to the /wp-content/ folder
  3. Inside, locate the cache directory
  4. Delete everything inside the cache folder – but not the folder itself.
That’s it. This clears out any stored files that caching plugins or systems may have left behind.

⚠️ Do not delete the actual cache folder—just its contents. Some plugins may need that folder to exist in order to function correctly.

Optional: Disable Caching via wp-config.php

Need to temporarily disable caching completely?

  1. In the root folder of your WordPress site, open the wp-config.php file.
  2. Add or update this line:
define('ENABLE_CACHE', false);
This can help during development or when testing major changes.
Still running into issues? There’s one more place cache might be hiding: your local DNS. Let’s quickly cover that.
clear dns cache

Clear Your DNS Cache

If you’ve recently changed hosting providers, switched domains, or made DNS-level updates and still aren’t seeing your site correctly, your local DNS cache might be to blame.

DNS cache stores IP address data linked to domain names, so your computer doesn’t have to look them up every time. But when that data becomes outdated, you might get stuck seeing an older version of your site—or get directed to the wrong server entirely.

Clearing your DNS cache helps your device fetch the most up-to-date routing info.

How to Clear DNS Cache on Your Device

On Windows

  1. Open Command Prompt as Administrator.
  2. Run this command:
  3. ipconfig /flushdns
  4. You’ll see a confirmation message: Successfully flushed the DNS Resolver Cache.  

On macOS

  1. Open Terminal
  2. Run this command:
    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. Enter your password when prompted (you won’t see it as you type)
ipconfig /flushdns
After clearing your DNS cache, restart your browser and revisit your site.

Frequently Asked Questions About Clearing Cache in WordPress

Now that you know how to clear cache in WordPress from every possible angle, let’s cover a few quick questions that come up often—especially for site owners managing updates, performance, and troubleshooting.

1. How often should I clear my WordPress cache?

Only when necessary. If your site is running smoothly and you’re not making changes, there’s no need to clear it regularly. Clear the cache when:

  • Updates aren’t showing up
  • You’re debugging layout or functionality issues
  • You’ve made design, plugin, or code changes

2. Will clearing the cache slow down my site?

Temporarily, yes—but it’s normal. Once the cache is cleared, your site has to rebuild those cached files from scratch. After a few visits, speed will stabilize again.

3. Can I clear cache for just one page?

Yes. Most caching plugins let you purge individual pages or posts. This is helpful if you’ve updated a blog post or product page but don’t want to clear the entire site cache.

4. What happens if I don’t clear the cache?

You (and your visitors) might see outdated content. If something looks broken or doesn’t reflect recent updates, cached files are often the reason.

5. Is it okay to use multiple caching layers (plugin + host + CDN)?

Yes—but you need to manage them carefully. If you’re using all three, make sure you know how to clear each layer. Don’t assume one clears them all.