[wp-trac] [WordPress Trac] #13170: get_term_by() should check object cache

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 28 19:04:27 UTC 2010


#13170: get_term_by() should check object cache
--------------------------+-------------------------------------------------
 Reporter:  scribu        |       Owner:  ryan                  
     Type:  defect (bug)  |      Status:  new                   
 Priority:  normal        |   Milestone:  Unassigned            
Component:  Cache         |     Version:                        
 Severity:  normal        |    Keywords:  has-patch dev-feedback
--------------------------+-------------------------------------------------
Changes (by scribu):

  * keywords:  has-patch => has-patch dev-feedback


Comment:

 I was thinking of adding a get_group() method to WP_Object_Cache, but I
 don't want to needlessly clone all the objects in the cache.

 Anyway, current patch saved around 25% of queries on a complex front page.

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


More information about the wp-trac mailing list