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

Filter future single actions

joshbetz opened this issue · comments

I don't think we ever check that single events are scheduled. We only need to know about them when they're going to run. If so, we can filter out single events that are more than about 5 minutes in the future.

Be careful with this. At the least, when called as part of wp_next_scheduled(), all events need to be present or Core will enter a rescheduling loop.

When WP 5.0 lands, it provides new hooks that should greatly simplify how Cron Control hooks in, and this may not be necessary. I've been meaning to put together a branch using the new hooks from #32656-core.

I think this turns out to be not quite necessary right now. I'm going to close it and we can reopen if necessary.