[wp-trac] [WordPress Trac] #57271: Cron unschedule / reschedule event errors

WordPress Trac noreply at wordpress.org
Tue Dec 6 10:10:00 UTC 2022


#57271: Cron unschedule / reschedule event errors
----------------------------------------+------------------------------
 Reporter:  domainsupport               |       Owner:  audrasjb
     Type:  defect (bug)                |      Status:  assigned
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Cron API                    |     Version:  6.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by domainsupport):

 Replying to [comment:5 peterwilsoncc]:

 > Were you seeing the error in local or development enviroments?

 My experience is with a live site https://ryesussex.uk which receives
 about 15,000 unique visitors per month.

 The following cron hooks ...

 - `do_pings` (I've personally seen this one)
 - `wp_update_plugins`
 - `wp_privacy_delete_old_export_files`
 - `wp_version_check`

 ... are all core hooks (I believe) and have all been seen in the support
 thread which rules out a plugin not using `wp_next_scheduled()` properly I
 believe?

 One theory I had was concurrent requests to a WordPress installation from
 different hostnames (with and without "www." or with and without SSL for
 example, they don't have to be completely different domains) firing the
 same cron event?

 In fact, if a site were visited via "http://" and WordPress then
 redirected to "https://" would these two requests (so close together) be
 able to fire the same cron event before it had completed and been removed
 from the schedule?

 Oliver

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57271#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list