Skip to main content
WPStagingClones
WPStagingClones Partner Disclosure: Outbound /go/ links marked rel="sponsored" may earn a referral commission at zero extra cost (Partner Disclosure).
Stack Matrix Hub (8)

Disabling Staging WP-Cron, Action Scheduler & Transactional Mail

Stop cloned WooCommerce Subscriptions, reminder emails, and webhook bursts from firing twice from staging databases.

DISABLE_WP_CRON=true · Action Scheduler paused · Outbound SMTP sinked

Disabling Staging WP-Cron, Action Scheduler & Transactional Mail
Telemetry verified 2026-11-10 by CloneQuota Matrix.

The Double-Execution Hazard in Cloned Stores

A freshly imported production database carries queued Action Scheduler jobs, WooCommerce renewal triggers, and CRM webhooks. The first unguarded request to a staging URL can fire duplicate renewal invoices or overwrite external ERP stock.

Three-Layer Cron, Webhook & Mail Kill Switch

Immediately after DB import, set DISABLE_WP_CRON true in wp-config.php, pause Action Scheduler queues via WP-CLI, switch payment gateways to sandbox keys, and route wp_mail() into Mailpit or a no-op mu-plugin filter.

Measured Thresholds & Configuration

Staging Hazard VectorImpact if Left ActiveMandatory Clone Mitigation
WP-Cron & Action SchedulerDuplicate subscription renewalswp config set DISABLE_WP_CRON true --raw
SMTP / Transactional MailConfuses real customers with test mailMU-plugin pre_wp_mail sink or Mailpit
Live Stripe / ERP WebhooksCorrupts live inventory & billingWP_ENVIRONMENT_TYPE=staging + key scrub
DISABLE_WP_CRON=true · Action Scheduler paused · Outbound SMTP sinked Launch ChemiCloud ($4.49/mo)Hostinger Cloud ($7.99/mo)