Stacks & Runtime (9)
WooCommerce + Action Scheduler Enrollment Queue Tuning for LMS
Prevent bulk cohort checkouts and webhook course enrollments from spawning overlapping PHP-FPM async loopback requests.
WP-CLI Queue Runner | Zero Web Worker Starvation
How Async Loopback Requests Steal Exam Workers
When 80 learners purchase a course or redeem group seats simultaneously, WooCommerce Action Scheduler dispatches async HTTP requests back to admin-ajax.php to unlock LearnDash courses and trigger BuddyBoss welcome emails—competing directly with quiz takers for PHP-FPM children.
Offloading Action Scheduler to WP-CLI
Disable default async loopback runners and process Action Scheduler queues via a dedicated system cron running wp action-scheduler run --batches=20 outside the web FPM pool.
Measured Thresholds & Configuration Targets
| Queue Execution Mode | Web FPM Impact | 1,000-Seat Cohort Sync Time |
|---|---|---|
| Async admin-ajax Loopback | High (steals up to 8 workers) | 18 - 25 minutes |
| System Cron WP-CLI Runner | Zero web worker contention | 3 - 5 minutes |