[wp-trac] [WordPress Trac] #5200: Options object cache can become out of sync with the database.

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 15 03:09:19 GMT 2007

#5200: Options object cache can become out of sync with the database.
 Reporter:  markjaquith  |       Owner:  anonymous
     Type:  defect       |      Status:  new      
 Priority:  high         |   Milestone:  2.4      
Component:  General      |     Version:  2.2.3    
 Severity:  major        |    Keywords:           
 I have a client with a high volume site (both in terms of view and in
 terms of entries posted that has been having problems with future-
 published entries sometimes not publishing at their correct times.  I've
 been monitoring things, and it seems that when problems occur, the object
 cache has become out of sync with the database.  We're using the APC
 backend in this case, though I don't think that's the cause of the issues.

 Specifically, sometimes the database "cron" entry will have cron items
 that aren't found when you get_option('cron');

 There may be a race condition with concurrent updates.

 We can likely improve this in the option API, but we might not be able to
 eliminate it entirely.  It may be prudent to revisit our method of storing
 cron entries, as an option is not a good place to store a frequently-
 updated serialized array.

 The idea of a multi-use "meta" table has been floated, and this might be
 another good use of that, as cron entries could have their own meta type.

Ticket URL: <http://trac.wordpress.org/ticket/5200>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list