[wp-trac] [WordPress Trac] #35323: Reschedule the Background Update cron for improved performance.
WordPress Trac
noreply at wordpress.org
Wed Jan 6 01:25:04 UTC 2016
#35323: Reschedule the Background Update cron for improved performance.
-----------------------------+-------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5
Component: Upgrade/Install | Version: 3.7
Severity: normal | Keywords: needs-patch
Focuses: |
-----------------------------+-------------------------
When we first added Background Updates to WordPress in 3.7, we added a
twice daily update check at approximately 7am "local time" (according to
the blogs settings).
What we didn't realise at the time, was that many sites have their
timezone settings set to `UTC` even though the site isn't "based" in the
UTC timezone (See #28988).
What this has effectively caused is that WordPress.org gets a large surge
of API requests around 7am and 7pm UTC daily which lasts approximately 2
hours, during which the API requests are over twice the rate outside of
that time.
The 7am/7pm time slot is really not anything special anymore, the vast
majority of WordPress background updates now happen within an hour of our
release time through good planning.
We should attempt to reduce the sudden surge of API requests to
WordPress.org by re-scheduling the 7am/7pm daily job to a random minute
during the day instead, it'll help with future WordPress.org API growth
and ensure that a more consistent API response time is provided.
We could either only re-schedule it if it falls within that time slot, or
as it's not guaranteed to run at that time anyway, reset every schedule to
a random minute instead.
This needs a patch, but I'd suggest it be backported all the way down to
3.7 and implemented as a once-off upgrade routine.
FYI @nacin
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35323>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list