MT-Blacklist Slowdown Fix

UPDATE: This fix is outdated. Upgrade to Version 1.5 (or 1.6), which solves the rebuild problems in a much more elegant way.

Stepan Rhea came up with this code fix to solve the issue of slow rebuilds and comment post times with MT-Blacklist. Through a long process of elimination the alpha testing group identified situations where the comment and trackback scanning of existing comments impacts blog performance. If you are affected here is a fix to speed up your comment post times and rebuild times. See the Technical Detail section for information on what the hack does.

This fix applies to MT-Blacklist v1.0 BETA only!!! It will be removed once the next version comes out.

Do It Yourself

1) Edit the Blacklist.pl file and comment out (with a # sign) or delete the following three lines:

MT::Template::Context->add_container_tag(‘Comments’ => \&Comments);
MT::Template::Context->add_container_tag(‘Pings’ => \&Pings);
MT::Template::Context->add_tag(‘EntryCommentCount’ => \&EntryCommentCount);

2) Copy the edited Blacklist.pl to your MT plugin directory (overwrite the current version). Verify the permissions are 755 (based on some reports 644 may not work).

3) Comment post times should return to normal after installation.

]]>< ![CDATA[

Technical Details

Filtering of content in existing comments and trackbacks is the functionality that causes slow downs in some circumstances. The hack turns off this functionality. The next version of MT-Blacklist will address this issue, perhaps by allowing you to turn the feature on or off.

You do not lose any of the blocking features on new comments or trackbacks provided by the MT-Blacklist plug-in by running this hack. The only functionality you lose is filtering of old comments. If you’ve been comment spammed already you’ve probably dealt with those already anyway.

Help Me!!! I Can’t Edit A File

If you can’t (or won’t) edit the Blacklist.pl file here’s a zip file with the edited version in it. This fix applies to MT-Blacklist v1.0 BETA only!!! It will be removed once the next version comes out.

1) Download the hacked Blacklist.pl (Zipped).

2) Extract the Blacklist.pl file, and copy it to the your MT plugin directory (overwrite the current version). Verify the permissions are 755 (based on some reports 644 may not work).

3) Comment post times should return to normal after installation.

Does This Friend Make My Ass Look Big?
Let The Frisking Of Small Children Begin

3 Comments

  1. sarah October 14, 2003
  2. Perfectly Sassy October 15, 2003
  3. Kiffin October 21, 2003