Skip to content
The site is slow or unstable

Changes don't show up on the site

You saved, but the site looks the same. How to clear the cache in the plugin, at your host and in Cloudflare.

You need
WP admin
Updated

If you have saved and published a change but the site looks the same, a cache is serving an older copy of the page. The cache can be in your browser, in a WordPress cache plugin, on your host's server or in Cloudflare. Each layer keeps its own copy, and the caches in WordPress, on the server and in Cloudflare all have to be cleared before visitors see the change.

The order matters: clear the cache in WordPress and on the server before you clear it in Cloudflare. Otherwise Cloudflare can fetch the old copy from the server again.

Check in a private window

  1. Open the page in a private window, or on your phone with Wi-Fi turned off. If you see the change there, only your own browser is showing an old copy. Then reload the page in your normal browser with Ctrl+Shift+R, or Cmd+Shift+R on a Mac.
  2. Check that the change is actually published. If the post or page is marked "Draft" or "Scheduled", visitors won't see the change yet.
  3. Check that you're editing the right site. If you have a staging site, it's easy to save the change there instead of on the live site.

Clear the cache in the plugin

Cache plugins such as WP Rocket, LiteSpeed Cache, W3 Total Cache and WP Super Cache store pre-built copies of your pages.

  1. Look for the plugin's menu in the admin toolbar at the top, or go to the plugin's settings page.
  2. Clear the whole cache, not just the one page. Changes to the menu, footer or stylesheet apply to every page.
  3. If the plugin also combines CSS and JavaScript files, they're rebuilt once the cache is cleared.

Page builders can have their own cache. In Elementor it's under Elementor → Tools, in the Elementor Cache section.

If the site uses an object cache such as Redis or Memcached, clear that too. It stores database results, including menus and settings. In the Redis Object Cache plugin, click "Flush Cache" under Settings → Redis.

Clear the server cache

Many hosting providers run their own cache on the server, in front of WordPress. It works independently of your plugins and has to be cleared separately.

  1. Log in to your hosting panel and look for a cache setting for the site. Some providers also add their own button to the WordPress admin toolbar.
  2. Clear the cache for the whole site.

If you don't know whether your host has a cache, you can check in your browser. Press F12, choose the Network tab, reload the page and click the first request, which is the page itself. If x-cache, x-litespeed-cache or x-cache-status with the value HIT or hit appears under Response Headers, the page came from a cache on the server. From a terminal, curl -sI https://yourdomain.com/ shows the same headers.

Clear the cache in Cloudflare

If the response headers show cf-cache-status: HIT, the page came from Cloudflare.

  1. Log in to Cloudflare and choose the domain.
  2. Go to Caching → Configuration.
  3. Under Purge Cache, choose "Custom Purge" to clear specific URLs, or "Purge Everything" to clear everything.

After "Purge Everything", every request goes straight to your server until Cloudflare has rebuilt its cache. On busy sites it's better to clear only the URLs you changed. If you're going to work on the site for a while, you can turn on Development Mode on the same Cloudflare page. That turns Cloudflare's cache off for three hours.

When you're stuck

If you still see the old version after clearing every cache, the change was saved somewhere the page doesn't load it from: a child theme, a page builder template or a different copy of the site. After a migration, the domain may also still point to the old server. You can check which server the domain actually points to without logging in anywhere, but you need access to the DNS to fix it.