Stacks & Runtime (9)
Taming WP Heartbeat & Quiz Auto-Save admin-ajax.php Bursts
Prevent 15-second Heartbeat polling and quiz auto-saves from multiplying uncached PHP worker demand by 2.2x during live exams.
15s Heartbeat: 0.62 req/s/user | 60s Cap: -54% Worker Load
The Hidden Heartbeat Multiplier on Quiz Pages
Every open browser tab running wp-admin/admin-ajax.php Heartbeat every 15 seconds wakes a full PHP 8.3 worker, loads WordPress core, and checks user auth. With 150 students sitting on a timed quiz, Heartbeat alone fires 10 uncached PHP requests per second before a single question is clicked.
Safe Interval Throttling Without Breaking Quiz Timers
Never disable Heartbeat completely if your quiz or drip-feed addon relies on nonces, but throttle frontend Heartbeat intervals to 60 seconds and keep WordPress WP-Cron disabled in wp-config.php in favor of a predictable 2-minute Linux crontab.
Measured Thresholds & Configuration Targets
| Heartbeat & Cron Config | Req/s per 100 Takers | Extra PHP Workers Needed |
|---|---|---|
| Default 15s + WP-Cron | 62 req/sec | +11 Workers (+3.4 GB RAM) |
| Throttled 60s + System Cron | 28 req/sec | +5 Workers (+1.5 GB RAM) |
| Front Disabled + Exam REST Only | 22 req/sec | +4 Workers (+1.2 GB RAM) |