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

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 14 17:25:22 UTC 2009


#11431: object cache's terms bucket potentially contains junk
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  ryan     
     Type:  enhancement        |      Status:  new      
 Priority:  normal             |   Milestone:  3.0      
Component:  Cache              |     Version:           
 Severity:  normal             |    Keywords:  has-patch
-------------------------------+--------------------------------------------

Comment(by filosofo):

 I don't think the get_pages() approach scales very well.  I've noticed
 several times that sites with a large number of pages at points exhaust
 the available memory in one of the cache methods. Since for a typical WP
 site there are many more terms than pages, I'd expect this to crop up more
 often if used for terms.

 Why not do something like I suggested a while ago: #4476.  Delete cache
 items by group name.  Then the clean_term_cache() could just flush all
 members of the "terms" group.  Problem solved, right?

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


More information about the wp-trac mailing list