Real cron and WP-CLI
On busy sites, run the queue from a real cron instead of WP-Cron:
- Add
define( 'DISABLE_WP_CRON', true );towp-config.php. - Run
wp gfmc queue runevery minute from your server's cron (or callwp-cron.php).
| Command | Does |
|---|---|
wp gfmc queue run [--limit=N] | Process due jobs now. |
wp gfmc queue status | Show the number of jobs per status. |
wp gfmc queue purge | Delete finished logs older than the retention period. |
Throughput is about two seconds per contact per runner, so one minute of one runner clears roughly 30 contacts.