[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:40:31 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):
Rather it should be the **last** scheduled Time of the similar Event:
{{{
$ date +"%s"
1534775409
$ php -r "echo \"last: 1534775409 < limit: \" . (time() + (10*60)) .
\"\\n\";"
last: 1534775409 < limit: 1534776329
$ date --date=" 2018-08-20 16:00" +"%s"
1534777200
$ php -r "echo \"last: 1534777200 < limit: \" . (time() + (10*60)) .
\"\\n\";"
last: 1534777200 < limit: 1534776395
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44818#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list