Go Back   Pligg Forum > Pligg Development > Pligg Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-03-2008, 06:45 AM
davy68's Avatar
davy68 davy68 is offline
New Pligger
Pligg Version: 9.9.0
Pligg Template: yget was used as a starting point
 
Join Date: Jul 2007
Location: Belgium
Posts: 5
Downloads: 18
Uploads: 0
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:
Sponsored Links
  #2 (permalink)  
Old 03-03-2008, 07:16 AM
bhatiacane's Avatar
bhatiacane bhatiacane is offline
Send a message via Yahoo to bhatiacane Send a message via Skype™ to bhatiacane
Constant Pligger
Pligg Version: 9.9
Pligg Template: yget
 
Join Date: Jul 2007
Location: Country : INDIA, State : Uttar Pradesh, City : Bareilly
Posts: 117
Downloads: 80
Uploads: 0
Thanks: 3
Thanked 2 Times in 2 Posts
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
The Following User Says Thank You to bhatiacane For This Useful Post:
  #3 (permalink)  
Old 03-03-2008, 08:34 AM
aaronrdavis's Avatar
aaronrdavis aaronrdavis is offline
Send a message via MSN to aaronrdavis Send a message via Yahoo to aaronrdavis
New Pligger
Pligg Version: 9.9.0
Pligg Template: b-Ice
 
Join Date: Feb 2008
Location: St. Louis
Posts: 10
Downloads: 3
Uploads: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Thank You Thank You Thank You!
Reply With Quote
  #4 (permalink)  
Old 03-03-2008, 10:14 AM
mushmoosh mushmoosh is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 38
Downloads: 16
Uploads: 0
Thanks: 4
Thanked 0 Times in 0 Posts
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, 10:38 AM
en3r0 en3r0 is offline
Constant Pligger
 
Join Date: Apr 2006
Location: USA
Posts: 573
Downloads: 23
Uploads: 0
Thanks: 32
Thanked 24 Times in 20 Posts
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
MemeVote.com - Find and vote on Memes
Reply With Quote
  #6 (permalink)  
Old 03-03-2008, 03:52 PM
lacasuela lacasuela is offline
Constant Pligger
Pligg Version: 9.9
Pligg Template: yget mod
 
Join Date: Oct 2007
Posts: 203
Downloads: 52
Uploads: 0
Thanks: 4
Thanked 3 Times in 2 Posts
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
__________________
www.cubaleo.net
Reply With Quote
  #7 (permalink)  
Old 03-04-2008, 07:56 AM
davy68's Avatar
davy68 davy68 is offline
New Pligger
Pligg Version: 9.9.0
Pligg Template: yget was used as a starting point
 
Join Date: Jul 2007
Location: Belgium
Posts: 5
Downloads: 18
Uploads: 0
Thanks: 0
Thanked 6 Times in 2 Posts
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, 03:42 PM
catchpen's Avatar
catchpen catchpen is offline
Pligg Donor
 
Join Date: Jan 2008
Posts: 199
Downloads: 25
Uploads: 1
Thanks: 28
Thanked 17 Times in 12 Posts
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, 04:08 PM
fhelik's Avatar
fhelik fhelik is offline
Casual Pligger
Pligg Version: 9.82
Pligg Template: jget
 
Join Date: Dec 2007
Location: Boston
Posts: 43
Downloads: 5
Uploads: 0
Thanks: 2
Thanked 4 Times in 2 Posts
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, 03:09 PM
tykeenum tykeenum is offline
New Pligger
 
Join Date: Feb 2008
Posts: 4
Downloads: 9
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Speeding up Pligg

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



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks Enabled by vBSEO 3.0.0