[wp-trac] [WordPress Trac] #42660: Single event scheduler
WordPress Trac
noreply at wordpress.org
Wed Jan 17 10:26:15 UTC 2018
#42660: Single event scheduler
-------------------------------+-----------------------
Reporter: skarabeq | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Cron API | Version: 4.9
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+-----------------------
Changes (by skarabeq):
* status: closed => reopened
* resolution: invalid =>
Comment:
@dd32 What is not clear ? I clearly explained more than one times when I
use `wp_schedule_single_event` it is running more than one time. If I have
one user on the website and he refresh 10 times web page the cron will be
executed 10 times, if I have 100 users with 10 refreshes on website the
cron will be executed 1000 times. Could you please check this in details,
because this is bug!
Again I will paste my simple code:
{{{#!php
<?php
$time = strtotime(date('Y-m-d 00:00:00', strtotime('next Tuesday')));
wp_schedule_single_event($time, 'hook_of_cron_job');
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42660#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list