You fix a typo in WordPress, click Save, and the page looks right when you’re logged in. Then someone sends you a screenshot with the old text. Before clearing every cache you can find, check which copy of the page they’re seeing. That tells you what to purge and what to leave alone.
Reproduce the problem as a visitor
- Copy the public URL from the editor and confirm the edit is saved. Preview links can show a version that visitors never see.
- Open that URL in a private window while signed out. Compare a specific sentence, image or colour so you have a clear way to tell the versions apart.
- If only one visitor sees the old version, ask for the exact URL, device and time. A link might open an older page, a translated version or a different hostname.
Find out whether the HTML is stale
In Chrome or Firefox, open DevTools → Network, reload, and select the main document request. In the response, search for the sentence you changed. If the old sentence is in the response, focus on the page, server or CDN cache. If the new sentence is there but the page still looks wrong, investigate the stylesheet, script or image that controls the affected part of the page.
If the site uses Cloudflare, a CF-Cache-Status: HIT response can show that Cloudflare served a cached copy. An Age header, when present, gives another clue. Run the same check on the main document and on the individual asset if the problem is visual. A cached stylesheet tells you nothing about whether the HTML document was cached.
Purge the page and the places that reuse it
Start with the HTML URL that shows the stale content. If the WordPress cache plugin offers a purge for that page, use it there first. If a CDN also caches the page, purge the same URL there afterwards, so the CDN fetches the fresh version. Check the homepage and relevant category archive if they display the changed title, excerpt or featured image.
For a style or script edit, find the actual file the browser uses. A performance plugin may serve an optimised bundle, so changing the original file can leave the old bundle in place. Regenerate it through the plugin, then check the new request in DevTools. For a theme you maintain, updating the stylesheet or script’s version when it changes can give browsers a fresh asset URL.
Worked example: an old image on the homepage
You replace a post’s featured image. The article shows the new picture, but the homepage card still shows the old one. Compare the image URL in both places. If the card still points to the old filename, refresh the cached homepage. If both point to the new image URL but only the card looks stale, check the browser’s selected image in DevTools. WordPress may serve a smaller derivative through srcset. Inspect that exact request before clearing anything else.
What to record if the old version comes back
- The affected URL and the time you saw the old response.
- Whether you were signed in and whether a private window or a different network showed the same thing.
- Which part was stale: the HTML, a bundled stylesheet, a script or a particular image size.
- The response headers and the cache layer you purged.
This gives your host enough to check where the stale copy came from. If the issue started during a server move, also check whether some visitors are still reaching the old host. The WordPress cutover checklist covers that scenario.
Leave a Reply