Automattic / Cron-Control

A fresh take on running WordPress's cron system, allowing parallel processing

Home Page:https://wordpress.org/plugins/wp-cron-control/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Events: Use preflight filters added in WP 5.1

peterwilsoncc opened this issue · comments

Task
When setting and getting Cron jobs, make use of the new WP filters: pre_schedule_event, pre_reschedule_event, pre_unschedule_event, pre_clear_scheduled_hook, pre_unschedule_hook, pre_get_scheduled_event, pre_next_scheduled and pre_get_ready_cron_jobs.

Background
In WordPress 5.1, new filters will be added to preflight event scheduling to allow for custom Cron storage systems.

The filters were added in WordPress#32656 (see WordPress/wordpress-develop@a32ea2d) and WordPress#45797 (see WordPress/wordpress-develop@0bc2059).

I can't express how excited I am for this. 5.1 is a month off, I'm confident that that gives me enough time to modify the Events Store to conditionally use the new filters in place of its option intercepts.

Resolved in #219