[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 02:18:15 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 nacin):

 Or, as a fourth option, do what is proposed in the ticket description —
 keep both functions and have wp_count_comments() wrap and cache
 get_comments_count() (and have that function's SQL changed in #19901).

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


More information about the wp-trac mailing list