[wp-trac] [WordPress Trac] #11431: object cache's terms bucket potentially contains junk

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 13 01:48:12 UTC 2010


#11431: object cache's terms bucket potentially contains junk
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  ryan                  
     Type:  enhancement        |      Status:  new                   
 Priority:  normal             |   Milestone:  3.1                   
Component:  Cache              |     Version:                        
 Severity:  normal             |    Keywords:  early has-patch commit
-------------------------------+--------------------------------------------
Changes (by shidouhikari):

 * cc: shidouhikari (added)


Comment:

 But memcached doesn't flush stuff after some time?

 I use WP File Cache plugin and by default it gets filemtime to know when
 cache was created, and if it's older than 1h cache is deleted and returns
 false. I changed default to 1 day and works fine.

 It's really scary having data eternally cached by default. Even more when
 wp_cache_add() only adds data to cache if it's not already cached, and
 wp_cache_replace() also only replace if data is already cached.

 A bug in any data editing code that doesn't delete cache may make old data
 be used forever.

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


More information about the wp-trac mailing list