[wp-hackers] Hooking into wp-cron settings?

Otto otto at ottodestruct.com
Mon Dec 13 20:12:01 UTC 2010


On Mon, Dec 13, 2010 at 1:29 PM, Brian Layman <bulk at thecodecave.com> wrote:
>   * It has been reported and disputed
>     <http://core.trac.wordpress.org/ticket/8923> that the line in
>     cron.php that calls the script has  a timeout that is too short or
>     a value that is incompatible with some configurations. I also
>     suspect that this can be a problem on extremely overloaded
>     systems.  However, the fix might be worse than the original symptom.
>
> The line in question is:
>
>   wp_remote_post($cron_url, array('timeout' => 0.01, 'blocking' =>
>   false));

More modern versions of WP fix this. Basically, wp_remote_post has one
of five different ways to do its job, depending on the capabilities of
the particular server installation. Two of those have problems with
sub-second timeout values, so those two use the PHP ceil function to
force the timeout up to 1 second.

So this should not be an issue with any recent version of WordPress.

-Otto


More information about the wp-hackers mailing list