Stack Matrix Hub (8)
WooCommerce Live Order & Customer Delta Sync Avoidance
Prevent staging-to-live pushes from wiping out orders, subscriptions, and customer rows created while QA ran on staging.
4-12s differential push · Excludes wp_wc_orders & wp_users · Zero lost checkout rows
Why Full Database Swaps Break Active Storefronts
Any WooCommerce store processing orders between staging clone creation and final push diverges immediately on wp_wc_orders, wp_woocommerce_order_items, wp_users, and wp_usermeta. Overwriting the entire production database silently deletes paid orders.
Differential Table & Code Push Workflow
Keep checkout state authoritative in production. Deploy plugin, theme, and custom block edits via rsync/Git, and push only selectively exported wp_posts templates or wp_options settings with WP-CLI while excluding all order, customer, and comment tables.
Measured Thresholds & Configuration
| Database Table Group | Live vs Staging Authority | Push-to-Live Action |
|---|---|---|
| wp_wc_orders / order_items | Production authoritative | Strict exclude from staging push |
| wp_users / wp_usermeta / wp_comments | Production authoritative | Strict exclude from staging push |
| wp_options (non-transient) / templates | Staging tested | Selective WP-CLI differential merge |