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

WordPress Trac wp-trac at lists.automattic.com
Thu May 13 18:48:59 UTC 2010


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

Comment(by ryan):

 Maybe add a slug cache.

 {{{
 wp_cache_add($term->slug, $term->term_id, "{$taxonomy}_slugs");
 }}}

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


More information about the wp-trac mailing list