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 the necessary URLs have been updated and make sure there is no breakage.
Checking Cache Hit Status
Make sure that 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
By default the CDN should be enabled, but you'll want to make sure this is 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.
Once you have completed the migration and performance testing the last step is pointing the DNS to our servers.