[wp-trac] [WordPress Trac] #16542: performance issue in comments_template() pagination

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 12 17:08:41 UTC 2011


#16542: performance issue in comments_template() pagination
--------------------------+---------------------------------------------
 Reporter:  fullo         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  3.0.5
 Severity:  minor         |   Keywords:  comment, performance, slowquery
--------------------------+---------------------------------------------
 in wp-includes/comment-template.php function comments_template() line 889
 are not passed the optional parameters "number" and "offset" if pagination
 is enabled for comments.

 This means that if I have a post with a lot of comments (ie. 1000) all of
 them will be loaded from the db causing a slow query.

 This is usually fixed using a caching plugin, but not all the
 installations come with it installed or enabled.

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


More information about the wp-trac mailing list