[wp-trac] [WordPress Trac] #15400: Recent comments widget triggers query for each post not in cache

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 26 05:15:09 UTC 2012


#15400: Recent comments widget triggers query for each post not in cache
-------------------------+------------------
 Reporter:  nacin        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.5
Component:  Comments     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by nacin):

 Let's at least get _prime_post_caches() in for 3.4. I am thinking we do
 this as a play-it-safe:

 `_prime_post_caches( $post_ids, strpos( get_option( 'permalink_structure'
 ), '%category%' ), false );`

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


More information about the wp-trac mailing list