Short answer: identify which cache is serving the stale version, purge that layer, and verify the result in a private browser window. WordPress sites can have browser cache, a page-cache plugin, host or reverse-proxy cache, CDN edge cache, and persistent object cache. Clearing everything at once is rarely necessary and can temporarily increase server load.
Use this guide when a design change, updated image, CSS fix, redirect, product price, or page content is not appearing. The safest approach is to start with the narrowest cache and work outward.
What does “WordPress cache” actually mean?
Browser cache
The visitor’s browser stores images, CSS, JavaScript, fonts, and sometimes HTML according to HTTP cache headers. This reduces repeated downloads. A private window or a hard reload can help determine whether the stale file exists only in your browser.
WordPress page cache
A page-cache system stores generated HTML so WordPress does not have to run PHP and database queries for every visit. This is useful for public pages but requires careful exclusions for cart, checkout, account, and other personalized areas.
Hosting or server cache
Managed hosts often cache pages at the web-server or reverse-proxy layer. This cache may continue serving an old page even after a WordPress plugin cache has been cleared.
CDN or edge cache
A CDN stores assets—and sometimes full HTML—near visitors. Purging the origin does not necessarily purge every edge location. CDN cache keys can also vary by URL parameters, cookies, device, or language.
Persistent object cache
Redis, Memcached, or another object cache stores the results of expensive data lookups. It is different from page cache. Clearing object cache forces WordPress to rebuild those values and is usually unnecessary for a simple CSS or image change.
The official WordPress caching documentation explains browser, page, object, and server caching as different layers.
Clear WordPress cache in the safest order
Step 1: Confirm the problem is actually cache
- Open the exact URL in a private or incognito window.
- Check whether the updated content appears while logged in but not while logged out.
- Test the canonical URL without old preview or tracking parameters.
- Try another browser or device.
- If only one image is stale, open its direct URL and check whether the filename stayed the same.
If the change is missing everywhere, confirm it was published to the correct site and environment. Cache cannot display content that was never saved or deployed.
Step 2: Clear the specific page from the WordPress cache
Use the cache controls supplied by the active caching system. Prefer “purge this URL” or “clear this page” before purging the entire site. Plugin menu labels change over time, so follow the current documentation for the cache system installed on the site.
After purging, reload once while logged out. Repeatedly purging on every refresh prevents the cache from warming and makes performance testing unreliable.
Step 3: Purge the host or server cache
If the host provides page caching, use the hosting dashboard or its WordPress integration to purge the affected URL. Some hosts automatically detect content changes; others require a manual purge after template, redirect, or configuration updates.
Step 4: Purge the CDN only when needed
Purge the affected URL or asset first. A complete CDN purge can generate a large burst of requests to the origin and is unnecessary when only one page or file changed.
When replacing an important image, stylesheet, or script, a versioned URL is often more reliable than repeated purges. WordPress themes can append a file version to asset URLs so browsers and CDNs request the new file.
Step 5: Clear browser cache or perform a hard reload
A hard reload asks the browser to revalidate resources for the current page. If that does not help, clear cached images and files for the site. Avoid deleting cookies unless the problem involves authentication or consent; removing cookies will sign you out and does not normally refresh CSS or images.
Step 6: Flush object cache only for data-level problems
Flush persistent object cache when stored WordPress data is demonstrably stale or after a change that specifically requires it. Developers with SSH access can use:
wp cache flush
The official WP-CLI documentation warns that on WordPress Multisite this may flush the object cache for every site in the network. Use it deliberately, especially during busy periods.
Cache clearing for WooCommerce
WooCommerce needs stricter cache rules because carts, sessions, prices, currencies, and accounts can vary by visitor.
- Do not publicly cache cart, checkout, or My Account HTML.
- Respect WooCommerce session cookies when defining cache rules.
- After a price or product change, purge the product page and relevant category or archive pages.
- Test cart additions, coupons, shipping calculation, checkout, payment, and account pages while logged out.
- If stock looks stale, identify whether the problem is page cache, object cache, an external inventory sync, or a delayed background job before purging everything.
How to verify that the cache was cleared
Do not stop at the “cache cleared” notification. Verify the result:
- Open the canonical URL in a private window.
- Check both desktop and mobile if the site uses device-specific cache variants.
- Inspect response headers for cache status, age, and CDN information.
- Confirm the updated HTML or asset URL in browser developer tools.
- Test from a second location when a CDN is involved.
- Repeat the request and verify that the page becomes cached again without reverting to old content.
A first request after a purge may be slower because WordPress must rebuild the page. That is expected. Continually purging a healthy cache makes every visitor pay the cost of regeneration.
What not to do
- Do not delete
wp-content/cacheblindly. Different systems use different files, permissions, and cleanup processes. Use the supported purge mechanism. - Do not toggle
WP_CACHEjust to refresh a page. That constant does not flush every cache layer and changing configuration can disable an intended cache integration. - Do not install a second caching plugin. Overlapping page cache and minification features commonly conflict.
- Do not clear cookies unless necessary. Cookies and cached files solve different problems.
- Do not purge the entire CDN for one image. Purge the asset or publish it with a new versioned URL.
- Do not cache personalized or transactional pages as public HTML.
Why does old content return after a successful purge?
If the correct version appears briefly and then the old version returns, another layer may be repopulating the cache from stale content. Common causes include:
- two page-cache systems running at the same time;
- a CDN caching HTML independently from the host;
- multiple origin servers with inconsistent deployments;
- a scheduled import or page builder rewriting content;
- a service worker storing an older application shell;
- cache rules that ignore an important cookie, hostname, language, or query parameter.
Map the request path from browser to CDN, server cache, WordPress, and database. Clear or correct the layer that owns the stale response instead of repeating a global purge.
Frequently asked questions
Will clearing WordPress cache delete content?
A properly configured cache purge should remove regenerable cached data, not posts, orders, uploads, or settings. Manual deletion of unknown folders or database rows is different and can be destructive.
How often should I clear the WordPress cache?
Not on a fixed schedule. Clear or invalidate cache when content, code, redirects, configuration, or integrations change and the caching system does not update the affected entries automatically.
Why can I see the change while logged in but visitors cannot?
Logged-in users are often excluded from page cache. Purge the anonymous page cache and test in a private window.
Should I clear object cache after every plugin update?
No. Start with the cache layer related to the change. Flush persistent object cache only when data remains stale or the update documentation specifically requires it.
Still seeing stale or broken pages?
If cache rules, CDN behavior, or WooCommerce sessions are causing inconsistent pages, CodaStudio can diagnose the full request path through our WordPress support service. For a broader performance audit, see our WordPress speed optimization service. Ongoing cache checks, updates, backups, and monitoring are included in our WordPress maintenance plans.
