[wp-trac] [WordPress Trac] #57924: Cron fires twice

WordPress Trac noreply at wordpress.org
Fri Mar 17 10:03:39 UTC 2023


#57924: Cron fires twice
--------------------------+------------------------------
 Reporter:  j3gaming      |       Owner:  j3gaming
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Cron API      |     Version:  6.1.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by domainsupport):

 This comment may help:
 https://core.trac.wordpress.org/ticket/57271#comment:11

 Specifically:

 >Looking at the way the transient is set in wp-cron.php with microtime()
 it would be almost impossible for the cron to be running concurrently
 without the transient being disabled (which it isn't on our site). It
 would require two requests to fire at exactly the same microsecond
 (different hostname request wouldn't matter as the transient is stored in
 the database). The chances of this happening would be infinitesimally
 small and would not present the quantity of errors we are seeing.

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


More information about the wp-trac mailing list