Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1
    New Pligger davy68's Avatar
    Joined
    Jul 2007
    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.

  2. #2
    Constant Pligger bhatiacane's Avatar
    Joined
    Jul 2007
    Posts
    125

    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.

  3. #3
    New Pligger aaronrdavis's Avatar
    Joined
    Feb 2008
    Posts
    2
    Thank You Thank You Thank You!

  4. #4
    New Pligger mushmoosh's Avatar
    Joined
    Jan 2007
    Posts
    29
    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?

  5. #5
    Constant Pligger en3r0's Avatar
    Joined
    Apr 2006
    Posts
    351
    You do have some impressive response times on your site, is it the host or did you tweak some things?

  6. #6
    Constant Pligger lacasuela's Avatar
    Joined
    Oct 2007
    Posts
    162
    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

  7. #7
    New Pligger davy68's Avatar
    Joined
    Jul 2007
    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)

  8. #8
    Pligg Donor catchpen's Avatar
    Joined
    Jan 2008
    Posts
    185
    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!

  9. #9
    New Pligger fhelik's Avatar
    Joined
    Dec 2007
    Posts
    26

    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

  10. #10
    New Pligger tykeenum's Avatar
    Joined
    Feb 2008
    Posts
    2

    Speeding up Pligg

    The akismet tip is profound. Good job:applaud:

Page 1 of 3 123 LastLast

Similar Threads

  1. Spam Trigger - Anti-Spam and Profanity Filter
    By Yankidank in forum Free Modules
    Replies: 20
    Last Post: 04-21-2012, 07:50 PM
  2. Little anti spam extra field.
    By gabs in forum Questions & Comments
    Replies: 2
    Last Post: 02-10-2010, 03:20 PM
  3. Akismet Anti-Spam v0.2
    By AshDigg in forum Free Modules
    Replies: 116
    Last Post: 10-25-2009, 09:37 PM
  4. Anti-Spam by IP.
    By davemackey in forum Questions & Comments
    Replies: 1
    Last Post: 12-13-2007, 01:37 AM
  5. Anti-spam module install?
    By AshMCairo in forum Questions & Comments
    Replies: 4
    Last Post: 05-29-2007, 07:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting