[wp-trac] [WordPress Trac] #17462: Improve cron locking

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 8 16:22:51 UTC 2011


#17462: Improve cron locking
--------------------------+--------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  Cron          |     Version:  3.1.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by nacin):

 Looks good. I definitely prefer the wp_cache_get() force rather than
 wp_cache_reset(), after digging into everything.

 spawn_cron() relies on 'doing_wp_cron', and then there's alternate cron
 support in there. Might be worth it to add the lock value to the
 doing_wp_cron key rather than changing up the variables. Likewise some of
 the locking stuff for the alternate cron may be worth fixing up.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17462#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list