View Single Post
  #1 (permalink)  
Old 03-03-2008, 07:45 AM
davy68's Avatar
davy68 davy68 is offline
New Pligger
 
Join Date: Jul 2007
Location: Belgium
Posts: 5
Thanks: 0
Thanked 6 Times in 2 Posts
Exclamation How to increase submit speed from 45s to a fraction while keeping Akismet anti-spam

Using pligg (currently version 9.9.0) on Bligg - burgerjournalistiek - artikelen delen en beoordelen we suffered, like many of you, some severe spam attacks.
Luckily, Ashdigg came with the Akismet anti-spam module to the rescue.
Problem was, however, that submitting a story became very lengthy. We sometimes had to wait more than a minute after pushing the submit button. Disabling the module turned out to be one solution.

We found a better one:

On line 141 of modules/akismet/libs/akismet.class.php:
Code:
strToUpper($type)." /{$this-  >akismetVersion}/$path HTTP/1.1\r\n" .
replace this with
Code:
strToUpper($type)." /{$this-  >akismetVersion}/$path HTTP/1.0\r\n"
and that's it. How one character can make a world of difference.

It was tested on Bligg - burgerjournalistiek - artikelen delen en beoordelen and allowed us to keep the akismet module enabled.

In the hope that this can help others having similar problems. Our 2cents as thank you for developping pligg in the first place.
If found helpful, please include by default in the next version of pligg.
Reply With Quote
The Following 5 Users Say Thank You to davy68 For This Useful Post: