One of the major issues in our redesign of MyBiggestComplaint.com was trying to cut down on queries. Comment plugins are query monsters and resource hogs that can slow a site.
For MyBiggestComplaint.com, we switched to Brian’s Latest Comments as rewritten by Donncha because that version caches comments. Cacheing comments cut our page queries in half on some pages considerably speeding up the site.
The plugin has one quirk. It links user comment author names to “http://”, the default author url for Wordpress. To fix the quirk, open Donncha’s version and look for line 146, change
if( $commenter->comment_author_url != '' ) {
to
if( $commenter->comment_author_url != ('' || 'http://') ) {
This change will make the plugin link a user comment author’s name to the comment url if the author has the default Wordpress url of “http://”.









Donncha O Caoimh wrote,
Good catch! Thanks for the link. I think I’ll have to make another release soon with that fix.
Quote | Link | September 30th, 2007 at 11:42 am