[wp-trac] [WordPress Trac] #44818: cron: preventing duplicate events fails when the first event is too far in the past

WordPress Trac noreply at wordpress.org
Mon Aug 20 14:25:50 UTC 2018


#44818: cron: preventing duplicate events fails when the first event is too far in
the past
-----------------------------+------------------------------
 Reporter:  bodohugobarwich  |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Cron API         |     Version:  4.9.8
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by bodohugobarwich):

 It should be {{{MINUTE_IN_SECONDS}}} == 60 in the example code.
 {{{
 $ php -r "echo abs( 1464704077 - time()) . \" < \". (10*60) . \"\\n\";"
 70070760 < 600
 }}}

 but even with a bigger number it still fails to recognize the past
 unexecuted event.

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


More information about the wp-trac mailing list