The page has been changed, but the user still sees the old version. What order should be followed from clearing the cache to verification?
The website content has been updated but the user still sees the old page. It is usually not that the changes have not been saved, but that the request is still hitting the old copy in the middle cache layer. The correct troubleshooting sequence is three questions: Has the source site changed? Has the cache layer been cleared clean? Is the verification address and response header correct? Follow this sequence, and in most cases, you can locate where the problem is within ten or twenty minutes, rather than blindly flipping through the cache switches on the back end.
How to confirm that the source site has actually changed
First, bypass all the cache layers to obtain the real response of the source site. Common practices include using an address with random parameters to directly request the source site IP, or adding a mark to indicate that the cache should not be used in the request, to see if the returned text is new content. If the source site is already on a new version, the problem is compressed to the cache layer; if the source site is still old, it means that the release process has not taken effect - check whether the document status is still stuck at draft or pending release, or the changes fall on another set of template files.
Do not skip this step. Many returns of 'even after clearing the cache, the old page still appears' are due to the fact that the source site was not confirmed to have been updated from the beginning. Especially for websites that have undergone full-site replacement and other types of batch modifications, it is necessary to check whether the replacement task is completed and whether any columns are missing before clearing the cache.
What granularity is available for cache clearing?
For example, according to the publicly available documentation of mainstream edge service providers, clearing the cache is not a switch, but a set of granularity: it can be cleared accurately by individual address, by hostname to clear the entire domain, by tag to clear a certain type of page, by path prefix to clear a directory, or to clear the entire site at one time. This set of concepts is used in both selection and troubleshooting - the coarser the granularity, the greater the impact on the overall hit rate of the site.
For a content site, the reasonable default habit is to 'clean the layer where the problem occurs': if a single article is changed, clean it according to the address; if the column template is changed, clean the column page and the articles below according to the prefix or tag; only after global changes such as upgrades and migrations should a full-site clean be used. Using coarse granularity as a daily means costs an increase in the amount of data returned and response time, which actually damages the user experience.
If the program's own cache and static files are dependent inside, the logic is the same: AnQiCMS provides a station-wide replacement tool for batch keyword or link changes, the配套 backup capability supports taking the data along with the static files, and if something goes wrong, the entire site can be rolled back, which is more secure than repeated testing at the cache layer.
How to verify that the cache has been cleared and no longer hits
The standard action to verify is to check the response headers. The general recommendation in the manufacturer's documentation is: clear the cache and then request the same address again to confirm that the cache status header is no longer a hit - for example, with Cloudflare's response headers, HIT indicates that the page is still being served directly from the edge, while MISS or origin status indicates that new content has been re-fetched. In addition to the response headers, two manual confirmations are also required: open the page in a network environment that has not been visited to exclude browser local cache; and verify with a new address that includes query parameters to exclude the old copy of the cache key that has been merged with the parameters.
If the verification is still the old page, go up one level: is there a second-level cache behind the page address, such as a gateway, reverse proxy, or page cache within the program; each level needs to be cleared and verified separately, and cannot assume that clearing the edge is equivalent to the full link taking effect.
How to leave a fallback when the amount of batch changes is large
The reason it is difficult to solve cache problems is often because the changes themselves are batch operations: column name changes, batch link replacements, and overall template replacements, affecting hundreds or even thousands of addresses at a time. Before taking action, leave two steps: one is to back up data and static files so that the entire system can be restored in case of problems; the other is to keep a list of changes, noting the address ranges affected this time, and clear the cache according to the granularity of the list, rather than clearing the entire site at once. Backups in AnQiCMS are routine operation items, and it is recommended to verify the upload files together during recovery drills to avoid only backing up the database and losing the images.
Common questions
Why do people still see old pages when only the CDN was cleared?There may still be two levels of browser cache and in-app cache on the link, use an incognito window on the browser side for verification, and clean up separately on the program side according to its cache switch.
Will clearing the entire site cause the site to collapse?It will not cause unavailability, but all requests will return to the source in a short period of time, resulting in slower response and increased pressure on the source site, so it is best to clear according to a smaller granularity such as address, prefix, or tag.
How to determine which level to clear?Start with the response header: clear the level with the cache status header returned in it first; if no cache headers are visible, suspect the browser's local cache or DNS pointing to another machine first.