[wp-trac] [WordPress Trac] #8923: cron timeout is too short

WordPress Trac noreply at wordpress.org
Mon Jan 19 08:06:10 UTC 2015


#8923: cron timeout is too short
-------------------------------------------------+-------------------------
 Reporter:  hailin                               |       Owner:
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
Component:  Cron API                             |  Release
 Severity:  normal                               |     Version:
 Keywords:  needs-patch reporter-feedback dev-   |  Resolution:
  feedback                                       |     Focuses:
-------------------------------------------------+-------------------------

Comment (by BellaBerlin):

 I described a somehow related issue together with my fix here:
 https://wordpress.org/support/topic/save-a-full-second-on-cron-execution

 As ryan pointed out, the timout is bumped up to 1 second when using
 '''cURL'''. This causes an unnecessary 1 second delay on every cron
 execution, which - depending on the setup - can be quite significant. For
 example, [http://www.yetim.de/ my blog] checks one search engine keyword
 rank every 2 seconds.

 My solution is to use '''stream''' transport instead, if a fractional
 timeout or a non-blocking request is used. For a proper fix I would also
 recommend using the new milliseconds feature from cURL 7.15.5 if
 supported, and only if not, fall back to stream.

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


More information about the wp-trac mailing list