Problem: Old data remaining in caches and CDNs obscures current results
- Why am I seeing the old screen on this new website?
- Reasons why it is difficult to determine when a migration is complete.
- First, it is a place to verify, not a place to delete.
- There is an order and a cost to deleting cache.
- Check the migration results and cache issues separately.
- Please handle it in the following way, depending on the size of the website.
- Frequently Asked Questions.
- WordPress-related links
I accessed the WordPress site that had been moved to a new server, but the screen from yesterday appeared again. The administrator has moved into the new home, but the visitors are still ringing the doorbell of the old house.
The first thought that comes to mind is, “Did the migration fail?” However, the culprit may not be the new site itself, but rather old data that remains somewhere in the middle.
Why am I seeing the old screen on this new website?
After moving a domain or server, the phenomenon of old pages, images, and CSS appearing is not solely a problem of caching. Browsers, hosting servers, WordPress, caching plugins, CDNs, and DNS servers can each serve different data.
A cache is a storage space that temporarily stores frequently used data. It is fast because it does not have to fetch the data anew each time, but on moving day, it becomes a slick attendant who keeps pulling out the old address book.
Old data does not remain in a single location.
WordPress does not inherently include page caching. However, if a caching plugin is installed, or if the hosting provider offers server-side caching, a separate storage location is created.
WordPress’s object cache stores results retrieved from the database. If persistent caching is enabled, data may remain even after a request is completed.
Reasons why it is difficult to determine when a migration is complete.
The administrator may see the new server screen and believe that everything is normal. On the other hand, the visitor may continue to receive old responses that are cached by the CDN or the browser.
A CDN (Content Delivery Network) stores website data on intermediate servers in various regions. For example, CloudFront stores cached files at edge locations, and by default, it specifies that files can remain available for up to 24 hours before they expire.
DNS can also cause confusion. DNS acts as a signpost, translating domain names into server addresses. If the TTL (Time To Live) is not lowered before the migration, the internet service provider may retain the old signpost for a longer period.
Google Search Central provides an example of how to reduce the TTL (Time To Live) to a few hours, with a minimum notice period of at least one week. Cloudflare explains that, depending on the configuration, it may continue to serve older content if there are problems with the origin server.
A single old screen cannot indicate a migration failure.
To separate the migration task from caching issues, you must first verify what has been transferred to the new site. LUX Content Migration distinguishes between the old and new sites using role settings, and allows you to export or import selected posts, pages, comments, authors, custom fields, and media as files.
Using only the “Site settings” option allows you to transfer only the General, Reading, and Discussion settings, permalinks, widget placement, and menu structure. A workflow is also provided to preview the new posts and comments that will be created, as well as the number of images required, before importing.
First, it is a place to verify, not a place to delete.
It is not correct to simply clear the entire CDN because an old screen is being displayed. After confirming that the new server is actually providing new responses, only the layer containing the old data should be deleted.
The safest verification process is to proceed from the nearest location to the farthest.
- Verify the original screen of the new server using a temporary hostname or the hosts file.
- Check whether the page cache of WordPress and the hosting service is serving outdated data.
- Check the cache plugin and the object cache.
- Compare the CDN response with the location indicated by the DNS.
- Re-verify the same address on other devices and in different locations.
If the original screen already displays the new appearance, then the server migration itself is likely to be normal. In this case, you need to determine which layer – the browser, hosting, WordPress, or CDN – is still holding onto the old data.
The problem lies in the fact that it is easily confused when checked directly. The administrator screen opens on the new server, while the visitor screen can originate from a CDN or the browser, and the location pointed to by DNS may vary by region. If the cache is cleared all at once, the cause disappears, making it difficult to determine where the problem originated.
The method of deleting without confirmation has limitations.
The official WordPress documentation also instructs users to check the browser cache, server cache, caching plugins, and incorrect file locations separately when changes are not visible.
There is an order and a cost to deleting cache.
When the cache is cleared, the next request will retrieve new data directly from the origin server. At Cloudflare, “purge” refers to the method of removing cached responses, while “invalidate” refers to the method of marking the cache as stale, leaving it in place but forcing a revalidation.
The order of operations is more important than deletion.
If the original server is still serving old data, the situation changes. Cloudflare advises updating the origin first and then purging the cache; otherwise, the old version may be cached again.
You must also be careful about a complete deletion. If all requests are directed to the origin server without passing through the cache, they could suddenly place a heavy load on the new server.
Therefore, it is safer to delete only the parts that have been confirmed to be problematic, such as modified HTML, CSS, and image paths. Deleting everything should only be done when the original server can handle that request volume.
Even if you clear the CDN, the process may not be complete. CloudFront explains that even after invalidating the CDN cache, if an old file remains in the user’s browser or company proxy, the old version may still be displayed until the cache expires.
There is also a method of adding a version number or a hash to the file name. In this way, even if the old file remains, the browser will request a new file from a different address.
Check the migration results and cache issues separately.
Before clearing the cache, clearly define the scope of the content and settings that have been migrated to the new site. This will make it easier to determine later whether the old screen you are seeing is due to a migration issue or residual cached data. LUX Content Migration allows you to select the necessary items from the existing site and export them as a .wpmpx file, then import them into the new site, categorized. You can define the scope of the task, whether it focuses on posts and pages, or only applies site settings such as permalinks and menu structure.
Before importing, use Preview to check the posts and comments that will be created, as well as the number of images required. Newly created posts in completed categories can be reverted using Roll back. If you need to manage redirects and 404 records for the old address while changing the server or domain, check the Redirect management add-on separately. If you need to actually download and store existing images and videos on the new site, check the add-on for that function separately. Since this tool does not provide a function for clearing the CDN or browser cache, the proper sequence is to check the cache layers separately after confirming the content migration results.
Please handle it in the following way, depending on the size of the website.
If you are running a small website that does not use a CDN, you can keep the order of operations simple.
- Verify the original screen of the new server.
- Clear the hosting cache and the cache plugin.
- If necessary, clear the object cache.
- Perform a hard refresh in the browser.
The object cache in WordPress can be cleared entirely through the management tools. If you are using WP-CLI, the command “wp cache flush” is provided for this purpose.
For websites that use a Content Delivery Network (CDN), there is an additional step. Only the changed HTML, CSS, and image URLs need to be selectively purged or invalidated, and the CDN response must be compared side-by-side with the new server response.
If the results differ across multiple locations, first check the DNS TTL (Time To Live) and propagation time before clearing the cache.
By examining the responses from the original server, the CDN, and the visitor’s browser separately, the perpetrator can be identified much more quickly.
Ultimately, the answer is straightforward: first, check the new server; then, delete only the layers containing the old data; and finally, verify again by changing the region and device.
Frequently Asked Questions.
Q. In the administrator’s view, the site is new, but why are only the visitors seeing the old interface?
A. This is because the requests from administrators and visitors may pass through different caches. It is likely that one of the browser, hosting server, or CDN is storing an older response.
Q. Where should I start checking on my website?
A. First, check the original screen of the new server using a temporary hostname or the hosts file. If the original screen looks new, narrow down which layer still has the old response by checking hosting, WordPress, CDN, and the browser in that order. If the difference varies by region, also check the DNS TTL and propagation time.
Q. Can this problem be easily solved using a tool?
A. You can use the hosting and CDN caching management features, the browser’s hard refresh function, and the WordPress caching management tools. However, before using any of these tools, it is important to first check which layer contains the old data to avoid accidentally clearing the wrong data.
Q. How can I check the previous results before clearing the cache?
A. First, it is necessary to verify that all the required content and settings have been properly implemented on the new website by checking them separately by scope.
In LUX Content Migration, before importing, you can create a preview of the posts and comments, check the number of required images, and proceed with importing them by category. Even after confirming the import results, if the old screen is still visible, you need to separately examine the cache in the original source, hosting server, CDN, or browser.