[wp-trac] [WordPress Trac] #63858: Trigger the wp_cron action from the shutdown hook instead of the init hook to reduce TTFB (⏱️ Time To First Byte) and improve performance 📈
WordPress Trac
noreply at wordpress.org
Fri Aug 22 07:22:00 UTC 2025
#63858: Trigger the wp_cron action from the shutdown hook instead of the init hook
to reduce TTFB (⏱️ Time To First Byte) and improve performance 📈
-------------------------+------------------------------
Reporter: pmbaldha | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron API | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Comment (by peterwilsoncc):
I've reviewed the history of cron spawing.
* [3512] - WP-Cron introduced
* [3514] - `wp_cron()` added to the `shutdown_action_hook()` function
* [3561] - moved from `shutdown_action_hook()` to `init`
* [10521] - moved to `sanitize_comment_cookies`
* [20652] - moved back to `init`
Unfortunately most of these commits are from a time before detailed commit
messages so there's not a lot of context beyond the commit messages.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63858#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list