[wp-trac] [WordPress Trac] #14090: the_tags never caches

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 25 17:43:41 UTC 2010


#14090: the_tags never caches
--------------------------+-------------------------------------------------
 Reporter:  luke83        |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  3.0            
 Severity:  normal        |    Keywords:  cache, tags    
--------------------------+-------------------------------------------------
 this is what i get every time there is a call to ''the_tags'' function:


 {{{
 SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON
 tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON
 tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN
 ('post_tag') AND tr.object_id IN (__POST_ID__) ORDER BY t.name ASC
 }}}


 Of course one query each post! D'oh!

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


More information about the wp-trac mailing list