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.
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.




Comments (3)
That's great, thanks!... (Below threshold)1. Posted by sarah | October 14, 2003 10:57 PM | Score: 0 (0 votes cast)
That's great, thanks!
1. Posted by sarah | October 14, 2003 10:57 PM |
Score: 0 (0 votes cast)
Posted on October 14, 2003 22:57
2. Posted by Perfectly Sassy | October 15, 2003 3:56 AM | Score: 0 (0 votes cast)
I slowed down on posting because I was getting irritated with the slooowww rebuilds. Thought it was my phone company again.
It just uploaded the edited Blacklist.pl and test posted a comment. Seems fine now.
Thanks for the fix.
2. Posted by Perfectly Sassy | October 15, 2003 3:56 AM |
Score: 0 (0 votes cast)
Posted on October 15, 2003 03:56
3. Posted by Kiffin | October 21, 2003 3:52 AM | Score: 0 (0 votes cast)
I tried the fix but it does not seem to help for some strange reason. Adding comments and/or rebuilds are still as slow as molasses (maybe even slower). Very aggravating.
3. Posted by Kiffin | October 21, 2003 3:52 AM |
Score: 0 (0 votes cast)
Posted on October 21, 2003 03:52