[wp-trac] [WordPress Trac] #19903: wp_count_comments() and get_comments_count() both do SQL queries

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 27 01:28:24 UTC 2012


#19903: wp_count_comments() and get_comments_count() both do SQL queries
-------------------------+--------------------
 Reporter:  markjaquith  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.4
Component:  Comments     |     Version:  3.3.1
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+--------------------

Comment (by markjaquith):

 > Wouldn't it make better sense to simply get rid of get_comment_count and
 make wp_count_comments count in the optimised way

 Yeah, probably would. I think I was just thinking we needed both because
 I'd assumed that core needed the non-cached one, which isn't the case...
 it doesn't use it at all.

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


More information about the wp-trac mailing list