Black Friday Sale is live: save up to 85% on Web & WordPress HostingView Deals
Step-by-Step TutorialServer Operations & SecurityBeginner

How to Clear Website Cache: Browser, CDN, Server & Plugin Purge Guide

Overview

You just edited your website’s homepage, updated a logo, or changed a CSS stylesheet, but when you reload the page, you still see the old version.

This issue is almost always caused by caching. Caching speeds up websites by saving pre-rendered copies of pages, images, and scripts so that future requests do not have to re-execute database queries or download files repeatedly. However, when you make design or content updates, cached snapshots can continue serving outdated content until invalidated.

Web content passes through multiple distinct caching layers between your server and your eyes:

  1. Browser Cache: Locally stored files on your computer or phone.
  2. Content Delivery Network (CDN) Cache: Stored copies at edge proxy servers around the world.
  3. Web Server / Reverse Proxy Cache: Server-level page caches (such as LiteSpeed LSCache, Nginx FastCGI, or Varnish).
  4. CMS / Application Plugin Cache: Caches generated by WordPress plugins or web applications.
  5. Object / Database Cache: In-memory query buffers (such as Redis or Memcached).

This tutorial walks through purging each layer step-by-step so you can diagnose exactly where stale content is trapped.


Layer 1: Clearing Your Browser Cache

The most common reason updates fail to appear immediately is that your local web browser has cached the website’s static stylesheets (.css), scripts (.js), or images (.png, .webp).

Step 1: Perform a Hard Refresh

A hard refresh instructs your browser to bypass its local cache and request fresh assets from the server:

  • Windows / Linux (Chrome, Firefox, Edge): Press Ctrl + F5 (or hold Ctrl and click the browser’s Reload button).
  • macOS (Chrome, Firefox, Edge): Press Cmd + Shift + R.
  • macOS (Safari): Hold Shift and click the browser’s Reload icon, or press Cmd + Option + E to empty cache, then reload.

Step 2: Test in an Incognito / Private Window

Open a new Incognito Window (Ctrl + Shift + N on Windows/Chrome; Cmd + Shift + N on Mac) and load the page. Incognito mode ignores existing cached assets and loads fresh versions from the server.

Step 3: Clear Browser Site Data

If a hard refresh does not work:

  1. In Chrome or Edge, press F12 to open Developer Tools.
  2. Right-click the browser’s Reload button next to the address bar.
  3. Select Empty Cache and Hard Reload.

Layer 2: Purging the CDN Cache (e.g., Cloudflare)

If your website routes DNS through a Content Delivery Network like Cloudflare or an edge proxy:

  1. Log in to your CDN dashboard (e.g., Cloudflare).
  2. Select your domain name.
  3. Navigate to Caching > Configuration.
  4. You have two purge choices:
    • Purge Everything: Clears every cached file across all global edge data centers. Recommended when pushing major site redesigns or theme changes.
    • Custom Purge (URL Purge): Purges only specific pages (e.g., https://example.com/pricing/). Recommended for targeted updates without losing edge cache benefits for the rest of your site.
  5. Click Purge Everything and confirm. Edge nodes will immediately drop old cached files.

Layer 3: Purging Web Server & CMS Plugin Caches

If you use a Content Management System such as WordPress, caching plugins compile dynamic PHP pages into static HTML files on the server:

For WordPress Sites with LiteSpeed Cache

  1. Log in to your WordPress administrative dashboard (/wp-admin).
  2. Locate the green LiteSpeed icon in the top admin bar.
  3. Hover over the icon and select Purge All.
  4. If you recently modified CSS or JS files, select Purge All - CSS/JS Cache.
  5. For in-depth configuration instructions, see our dedicated guide on how to optimize WordPress with LiteSpeed Cache.

For Other Caching Plugins (WP Rocket, W3 Total Cache, WP Super Cache)

  1. In the top WordPress admin bar or plugin menu, look for Clear Cache, Purge Cache, or Delete Cache.
  2. Click the purge option.
  3. If using asset minification, ensure you also purge the Minified CSS/JS cache.

Layer 4: Flushing Object & In-Memory Caches (Redis / Memcached)

If your server or application utilizes an in-memory object cache to store database query results:

  • Via WordPress Plugin: If you use Redis Object Cache or LiteSpeed Object Cache, navigate to the plugin settings and click Flush Object Cache (or toggle the connection).
  • Via Command Line (VPS / Dedicated): If you manage your own server with SSH access (see how to connect with SSH), flush Redis directly:
redis-cli flushall

Systematic Cache Troubleshooting Flowchart

If your changes are still not appearing after following these steps, use this diagnostic sequence:

[ Update Site Content ]
          │
          ▼
Is change visible in Incognito window?
   ├── YES ──> Stale Browser Cache (Perform Hard Refresh / Ctrl+F5)
   └── NO
          │
          ▼
Does site use a CDN (e.g., Cloudflare)?
   ├── YES ──> Purge CDN Cache (Edge Purge)
   └── NO
          │
          ▼
Does site run a CMS caching plugin?
   ├── YES ──> Purge All Plugin & Server Page Caches
   └── NO
          │
          ▼
Check Web Server Rewrite Rules / DNS Propagation

By methodically testing each layer from the client browser inward toward the origin server, you can eliminate stale views while avoiding risky manual deletions.

Frequently Asked Questions

Why do my design changes show up in my phone's browser but not on my computer?

This is a classic symptom of local browser caching. Your desktop browser has cached previous CSS stylesheets or JavaScript bundles, whereas your mobile browser requested a fresh copy. Performing a hard refresh (Ctrl+F5 or Cmd+Shift+R) on your desktop will resolve the discrepancy.

Does clearing my website cache delete any of my posts, images, or database records?

No. A cache contains temporary, disposable copies of already rendered files and queries. Clearing or purging cache simply removes the stored snapshots, forcing the server to render a fresh copy on the next visit. It does not alter your underlying database or source media.

Should I manually delete files inside cache folders on my server via FTP?

No. Deleting raw server files or database tables can cause permission errors or corrupt plugin index registries. Always use the built-in purge buttons provided by your CMS plugins, CDN control panel, or hosting server tools.

Need Technical Assistance?

Web Hosting Wale support is available 24/7. Tickets are typically answered within 10-15 minutes.

Open Support TicketView All Support Channels