Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#16542 closed defect (bug) (duplicate)

performance issue in comments_template() pagination

Reported by: fullo's profile fullo Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.0.5
Component: Comments Keywords: comment, performance, slowquery
Focuses: Cc:

Description

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.

Change History (1)

#1 @ryan
14 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

See #8071

Note: See TracTickets for help on using tickets.