Staging Sites and a Safe Update Routine
Why staging pays for itself
Most 'the site went down after an update' incidents are a theme or plugin conflict that would have appeared instantly in a staging copy. Ten minutes of testing avoids hours of emergency recovery, and on a store it avoids lost revenue.
Create a staging environment
- 1 Create a subdomain such as staging.yourdomain.com with its own document root.
- 2 Copy files and clone the database, updating URLs in the clone.
- 3 Password-protect the directory and add a noindex response header.
- 4 Disable outgoing email, payment gateways and analytics in the staging copy so tests never touch customers.
The update routine
- 1 Back up production first, always.
- 2 Sync production to staging so you test against current data.
- 3 Apply updates on staging in batches — core, then plugins, then theme.
- 4 Walk the critical paths: homepage, search, a form submission, login, checkout, admin publishing.
- 5 Apply the same updates to production during a low-traffic window.
- 6 Clear all caches and verify the same critical paths again.
Pushing changes back
Never push a full database from staging to a live store — you would overwrite orders and customers created since the clone. Push files and configuration, and apply database changes deliberately. For content-only sites, a full push is acceptable if you re-clone immediately before making changes.
Frequently asked questions
Does staging cost extra?
No. A staging subdomain lives inside your existing hosting account and uses the same resources.
How often should I update?
Security releases immediately. Everything else on a weekly or fortnightly schedule via staging.
Need a hand applying this?
Our engineers can do it for you. Open a ticket and we will help.