After Migration
It’s best to use a subdomain since the Pagely staging URL bypasses our cache layer.
- Update your URL to something such as test.example.com, replacing example.com with your domain.
- Point your DNS for your new subdomain and update the database URLs to reflect your changes.
- Review the site to ensure that all necessary URLs have been updated and make sure there is no breakage.
Performance Testing
Checking Cache Hit Status
Make sure the site is properly hitting our cache layer. You can use browser developer tools to check response headers or run this cURL command from a shell.
curl -I http://test.example.com
You are looking for X-Cache-Status: HIT. If you receive a MISS or Bypass you are most likely setting a cookie or PHP session that is causing it to miss. A good place to start is with your plugins by searching for the session_start() function and patching it if possible.
Checking CDN Status
The CDN should be enabled by default, but you'll want to make sure it's active prior to running any traffic tests. To double-check that the CDN is active, perform the following steps:
- Log into your WordPress admin dashboard.
- On the left side admin menu, hover over Pagely and click on PressCDN.
You should now be able to see your CDN status.
DNS Cutover
After you have completed the migration and performance testing, the last step is pointing the DNS to our servers.
- From your domain registrar, point the domain using one of our suggested methods.
- Update the URLs in the database; search and replace test.example.com with example.com.
- Monitor the DNS propagation using a tool such as https://dnschecker.org.