User Agents

Web browsers and everyday web tech, explained

How to Flush WordPress Cache: Clear It Fast

· 5 min read · Cookies and Cache

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Flushing WordPress cache removes outdated or stored versions of your site’s content, styles, and scripts so visitors see the latest changes. This is essential after updating content, themes, or plugins, as cached data can delay or hide updates. WordPress doesn’t include built-in full-page caching, so most cache clearing involves third-party tools like plugins, hosting providers, or browser and DNS caches. This guide shows you how to flush cache at every level safely and effectively.

What You'll Need

  • Access to your WordPress admin dashboard
  • Administrator-level login credentials
  • Knowledge of which caching tools you're using (plugin, hosting, CDN, etc.)
  • Optional: FTP or file manager access for manual cache clearing

Step-by-Step

  1. Log in to your WordPress admin dashboard. Go to yourdomain.com/wp-admin and enter your username and password. This is the control center for managing cache plugins and site settings.
  2. Identify your caching method. Check if you’re using a caching plugin (e.g., WP Super Cache, W3 Total Cache, WP Rocket), a hosting-level cache (e.g., SiteGround, Kinsta, WP Engine), or a CDN (e.g., Cloudflare). This determines where to flush the cache.
  3. Clear plugin-based cache. If using a plugin:
    • For WP Rocket: Go to WP Rocket > Dashboard and click Clear Cache.
    • For W3 Total Cache: Navigate to Performance > Dashboard and click Empty All Caches.
    • For WP Super Cache: Go to Settings > WP Super Cache and click Delete Cache.
  4. Clear hosting-level cache. If your host manages caching:
    • For Kinsta: Log into MyKinsta, select your site, go to Tools > Clear Cache.
    • For WP Engine: In the dashboard, click Cache > Purge All Caches.
    • For SiteGround: Use the SG Optimizer plugin or cPanel to click Flush Cache.
  5. Clear CDN cache (if used). If you use Cloudflare, Sucuri, or another CDN:
    • Log into your CDN provider’s dashboard.
    • Find the caching or performance section.
    • Select Purge Everything or Clear Cache to remove all cached files.
  6. Clear browser cache. Your browser may still show old content. Press Ctrl+Shift+Delete (Windows) or Cmd+Shift+Delete (Mac), select cached images and files, and clear them. Alternatively, do a hard refresh with Ctrl+F5 or Cmd+Shift+R.
  7. Check your site. Visit your homepage and key pages in a private/incognito window to confirm changes appear. If not, repeat steps or check for multiple caching layers.

Common Mistakes

  • Only clearing one cache layer: Many users flush a plugin cache but forget hosting or CDN caches, leading to outdated content.
  • Ignoring browser cache: After server-side clearing, your browser may still display old files, making you think the flush failed.
  • Not purging CDN cache: CDNs like Cloudflare store static assets globally. If not cleared, images and CSS may remain outdated.
  • Over-caching dynamic content: Caching login pages, cart contents, or user-specific data can break functionality.
  • Clearing cache during high traffic: Frequent cache clearing under load can slow down your site as the server rebuilds cache.

Tips

  • Use a cache management plugin with one-click clearing: Tools like WP Rocket or WP Fastest Cache simplify flushing with dashboard buttons.
  • Enable cache preloading: After clearing, some plugins can automatically reload key pages to rebuild cache faster.
  • Exclude dynamic pages from caching: Prevent checkout, login, and admin pages from being cached to avoid issues.
  • Set appropriate cache expiration times: Balance performance and freshness—30 minutes to 24 hours is typical for pages.
  • Test changes in incognito mode: This bypasses browser cache, giving a true view of your live site.
  • Monitor server response headers: Use browser DevTools (Network tab) to check if pages are served from cache (look for X-Cache: HIT or similar).

Troubleshooting

If your site still shows old content after flushing cache:

  • Double-check all cache layers: Ensure plugin, hosting, CDN, and browser caches are all cleared.
  • Verify CDN settings: Some CDNs require manual cache purge or have a delay (up to 30 minutes). Confirm the purge completed.
  • Check for server-side opcode caching: Advanced setups may use OPcache or Memcached. These require server-level access and should be cleared via hosting control panel or command line (e.g., sudo service php8.1-fpm restart).
  • Look for caching at the DNS level: If you changed site IP or DNS records, TTL settings may delay propagation. Use dig yourdomain.com or online tools to verify.
  • Disable caching temporarily: For testing, disable your cache plugin or hosting cache to confirm the issue is cache-related.
  • Check for stale static files: CSS and JS files may be cached by the browser or CDN. Append version numbers (e.g., style.css?v=2) to force reload.

Frequently Asked Questions

Does flushing cache slow down my site temporarily?

Yes. After clearing, the first few visits to each page will be slower as the server rebuilds the cache. This is normal and resolves quickly.

How often should I clear WordPress cache?

Only when needed—after content updates, design changes, or plugin/theme edits. Don’t clear routinely unless troubleshooting.

Can clearing cache delete my content?

No. Cache stores temporary copies, not your actual content. Flushing removes only stored files, not posts, pages, or media.

Why doesn’t my updated image appear after clearing cache?

The image filename may be the same. Rename the file or add a query string (e.g., image.jpg?v=2) to force reload.

Do I need to clear cache after every update?

Yes, if you update content, themes, or plugins that affect appearance or functionality. Otherwise, visitors may not see changes.

Can I automate cache clearing?

Yes. Some plugins clear cache automatically after publishing posts or saving settings. Hosting platforms may also offer hooks for deployment scripts.