[wp-trac] [WordPress Trac] #45976: Move logic to find next event from `wp_next_scheduled()` to `wp_get_scheduled_event()`.
WordPress Trac
noreply at wordpress.org
Wed Jan 23 23:07:44 UTC 2019
#45976: Move logic to find next event from `wp_next_scheduled()` to
`wp_get_scheduled_event()`.
--------------------------------------+----------------------------
Reporter: peterwilsoncc | Owner: peterwilsoncc
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.1
Component: Cron API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+----------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"44693" 44693]:
{{{
#!CommitTicketReference repository="" revision="44693"
Cron: Move logic for finding the next event's timestamp.
Moves the logic for determining when an event will next run from
`wp_next_scheduled()` to `wp_get_scheduled_event()`.
This improves the performance of `wp_get_scheduled_event()` by avoiding
duplicate function calls and object cache hits.
Props peterwilsoncc.
Fixes #45976.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45976#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list