Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials



How to increase submit speed from 45s to a fraction while keeping Akismet anti-spam

Advanced Tutorials for Modifying your Pligg site


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-03-2008, 07:45 AM
davy68's Avatar
New Pligger
Pligg Version: 9.9.0
Pligg Template: yget was used as a starting point
 
Join Date: Jul 2007
Location: Belgium
Posts: 5
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.

Last edited by davy68; 04-03-2009 at 04:28 AM.
Reply With Quote
Sponsor
  #2 (permalink)  
Old 03-03-2008, 08:16 AM
bhatiacane's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: wistie
 
Join Date: Jul 2007
Location: Country : INDIA, State : Uttar Pradesh, City : Bareilly
Posts: 120
Send a message via Yahoo to bhatiacane Send a message via Skype™ to bhatiacane
Exclamation

your website is working very fast (open very fast) please tell why my OnlineEquityCalls.com / Published News is open slow i already disable Akismet v0.4

Quote:
Originally Posted by davy68 View Post
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
  #3 (permalink)  
Old 03-03-2008, 09:34 AM
aaronrdavis's Avatar
New Pligger
Pligg Version: 9.9.0
Pligg Template: b-Ice
 
Join Date: Feb 2008
Location: St. Louis
Posts: 10
Send a message via MSN to aaronrdavis Send a message via Yahoo to aaronrdavis
Thank You Thank You Thank You!
Reply With Quote
  #4 (permalink)  
Old 03-03-2008, 11:14 AM
Casual Pligger
 
Join Date: Jan 2007
Posts: 38
Excellent! Thank you!

The load times of your site are amazing. Can you please tell me where you are hosting, server environment, any tweaks made to the code to improve load times?
Reply With Quote
  #5 (permalink)  
Old 03-03-2008, 11:38 AM
Constant Pligger
 
Join Date: Apr 2006
Location: USA
Posts: 578
You do have some impressive response times on your site, is it the host or did you tweak some things?

God bless,
-en3r0

Torrop.com - Torrent and P2P News
Reply With Quote
  #6 (permalink)  
Old 03-03-2008, 04:52 PM
Constant Pligger
Pligg Version: 9.9
Pligg Template: yget mod
 
Join Date: Oct 2007
Posts: 199
Quote:
Originally Posted by mushmoosh View Post
Excellent! Thank you!

The load times of your site are amazing. Can you please tell me where you are hosting, server environment, any tweaks made to the code to improve load times?
i'm having problems with this too, i'm with OVH some time i get 3seconds but mostly 8.5-12secs see 15sec
Reply With Quote
  #7 (permalink)  
Old 03-04-2008, 08:56 AM
davy68's Avatar
New Pligger
Pligg Version: 9.9.0
Pligg Template: yget was used as a starting point
 
Join Date: Jul 2007
Location: Belgium
Posts: 5
We are very happy with our Belgian ISP (Openminds: Home Page)

Maybe also some general rules we try to adhere:
  • keep images small
  • avoid javascript whenever possible
  • limit text per page
  • upgrade code to latest version

We also created an extra index in the database based on forum guidelines. Have to look this up for details (not sure about impact)
Reply With Quote
  #8 (permalink)  
Old 03-11-2008, 04:42 PM
catchpen's Avatar
Coder
 
Join Date: Jan 2008
Posts: 210
Just an FYI for everyone with 9.9 - I don't even have this enabled yet (haven't got my Askimet key yet) and it sped up my submit step 3 big time when changing the 1 to a 0 like bhatiacane explained. Thanks so much!
Reply With Quote
  #9 (permalink)  
Old 03-12-2008, 05:08 PM
fhelik's Avatar
Casual Pligger
Pligg Version: 9.82
Pligg Template: jget
 
Join Date: Dec 2007
Location: Boston
Posts: 43
Exclamation

Quote:
Originally Posted by davy68 View Post
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.
changing this does not affect the way Akismet works?

because on line 192 it says "var $akismetVersion = '1.1';" I don't know if this interferes with the change you made
Reply With Quote
  #10 (permalink)  
Old 03-21-2008, 04:09 PM
New Pligger
 
Join Date: Feb 2008
Posts: 4
Speeding up Pligg

The akismet tip is profound. Good job
Reply With Quote
Reply

Thread Tools
Display Modes



Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development