performance issue in comments_template() pagination
|Reported by:||fullo||Owned by:|
|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.