I'd like to implement and create a PR for a Laravel style wp-cron worker.
The idea is to constantly keep WordPress loaded in a separate process to avoid allocating and de-allocating memory every time wp cron event run is called. The worker would then process any wp-cron events that become due. I'm hoping this would free up resources on the server.
The command itself would look something like wp cron event worker or wp cron event daemon
I'd like to implement and create a PR for a Laravel style wp-cron worker.
The idea is to constantly keep WordPress loaded in a separate process to avoid allocating and de-allocating memory every time
wp cron event run
is called. The worker would then process any wp-cron events that become due. I'm hoping this would free up resources on the server.The command itself would look something like
wp cron event worker
orwp cron event daemon
Laravel documentation: https://laravel.com/docs/9.x/queues#the-queue-work-command
What do you think?