[wp-hackers] Can Multiple Simultaneous Cron Instances Be Called ?

Otto otto at ottodestruct.com
Tue Dec 7 06:16:15 UTC 2010


On Mon, Dec 6, 2010 at 10:51 PM, Ryan McCue <lists at rotorised.com> wrote:
> Otto wrote:
>> The window for two to run at once and both succeed is about as small as possible.
>
> It could be made smaller by using actual cron to call the script, as
> then you're guaranteed that it will only run once.

Yes, you can do that if you have the ability to set up real cron jobs.
Just define DISABLE_WP_CRON to true in your wp-config.php, then set up
a cron job to execute wp-cron.php however often you want it to run.

-Otto


More information about the wp-hackers mailing list