[wp-trac] [WordPress Trac] #27772: Add a TTL to Core update checks

WordPress Trac noreply at wordpress.org
Sat Apr 12 04:33:07 UTC 2014


#27772: Add a TTL to Core update checks
-----------------------------+------------------------------
 Reporter:  dd32             |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------

Comment (by dd32):

 > This change will not help plugin security updates though, as they will
 still only be checked every 12 hours (Even if the background update
 callback is kicked off more often than that) as wp_update_plugins() has a
 12hour timeout on it. We could reduce that timeout to 1hour for cron tasks
 though perhaps.

 [attachment:27772.2.diff] does this, if `wp_update_plugins()` is running
 within cron, we expect it to make a new request, so it drops the timeout
 to 0.

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


More information about the wp-trac mailing list