Hosting Tiers Hub (10 Guides)
Replacing wp-cron.php With Real Cron to Free PHP Workers
WooCommerce Action Scheduler and Elementor background tasks consume full PHP workers on visitor hits unless moved to system cron.
Saves 1-2 peak PHP workers during traffic spikes
How wp-cron.php Causes Random Frontend Latency
By default, WordPress spawns an internal loopback HTTP request to wp-cron.php during normal visitor requests whenever scheduled tasks are due. On busy WooCommerce + Elementor sites, this ties up two PHP-FPM children for a single visitor.
5-Minute System Cron Pattern
Define DISABLE_WP_CRON as true in wp-config.php and execute wp cron event run --due-now via system crontab or hPanel/cPanel cron every 5 minutes.
Measured Thresholds & Configuration
| Cron Architecture | Visitor TTFB Impact | Worker Contention | Setup Location |
|---|---|---|---|
| Default wp-cron.php | Periodic +800ms stall | High (2 workers/hit) | WordPress default |
| DISABLE_WP_CRON + System Cron | 0 ms visitor overhead | Isolated single cron task | wp-config.php + crontab |