HOW TO: speed up your pligg site?

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-12-2007, 07:34 PM
Casual Pligger
Pligg Version: 9.6
Pligg Template: yget, molli
 
Join Date: Jul 2007
Posts: 29
Send a message via MSN to sadegazoz
can everyone add the methods they use for a faster pligg site with references, so newbies can learn and find things easily and dont ask same things again and again like me maybe this HW TO topics can be good references.

question>> How to speed up pligg?
lets list all of the clear answers and play it like tennis please add new proved methods and list all of them together.


1- enabling gzip mod for js files
>>>> http://forums.pligg.com/suggestions/...oad-times.html >>>> htaccess method
>>>> http://forums.pligg.com/general-help...-js-files.html >>> admin

2- adding link_status column in the pligg_links table from your phpmyadmin panel >>>>> http://forums.pligg.com/pligg-mods/1...html#post45809

3- try dedicated servers instead of shared ones if you have more than 100 or more visitor traffic in a day. >>>>
http://forums.pligg.com/general-help...mely-slow.html

4- optimize your logo and other images and icons on your page. >>>> /templates/YOUR TEMPLATES NAME/images




ok please add yours with a link or with a clear explanation...
thanks for participating

Last edited by sadegazoz; 11-12-2007 at 07:39 PM.
Reply With Quote
  #2 (permalink)  
Old 11-12-2007, 07:50 PM
Pligg Donor
Pligg Version: 9.8.2 +
Pligg Template: yget
 
Join Date: Jul 2007
Posts: 123
Experiment with a new webhost. I was using a virtual private server (VPS) that should have loaded my pages very quickly; however, each page was loading at 6-8 seconds. I got fed up and switched to a shared hosting package with a new webhost. Now my pages load 3-4 seconds. Please understand, the problem was not with having a VPS (I experimented with another VPS and got the same 3-4 seconds), the problem was with my webhost and the way it handled connections. Once my traffic count goes up I'll switch back to a different VPS.
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 12:22 PM
hotsitez's Avatar
Casual Pligger
Pligg Version: 9.x
 
Join Date: Jun 2007
Posts: 30
Well I have our site on a dedicated server (Intel Pentium "D" 3.2Ghz, 4 meg ram, yada-yadda), load times are fine, BUT many talk of load times being the problem, and I think the real issue is Page Size - My sites page size is 108k, but loads very fast. and NO that is just the code part of the pligg page, before graphics - so lets not speak of graphics. Obviously we have some issues, but I was wondering how many of you may also be having the same problem??

Any suggestions to cleaning out the page size?
Reply With Quote
  #4 (permalink)  
Old 05-21-2010, 10:14 AM
Casual Pligger
Pligg Version: 1.1.5
Pligg Template: default
 
Join Date: Jan 2008
Posts: 38
the best way i tested to speed up my pligg site is this,add this code to .htaccess

Quote:
# BEGIN Compress text files
<IfModule mod_deflate.c>
<FilesMatch "\.(css|js|x?html?|php)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
# END Compress text files
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</IfModule>
# END Expire headers
# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<FilesMatch "\\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
<FilesMatch "\\.(css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
<FilesMatch "\\.(js)$">
Header set Cache-Control "max-age=216000, private"
</FilesMatch>
<FilesMatch "\\.(x?html?|php)$">
Header set Cache-Control "max-age=600, private, must-revalidate"
</FilesMatch>
</IfModule>
# END Cache-Control Headers
# BEGIN Turn ETags Off
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
FileETag None
# END Turn ETags Off
# BEGIN Remove Last-Modified Header
<IfModule mod_headers.c>
Header unset Last-Modified
</IfModule>
# END Remove Last-Modified Header
Reply With Quote
  #5 (permalink)  
Old 05-21-2010, 10:47 AM
Casual Pligger
 
Join Date: Dec 2009
Posts: 61
Thanks for share! I tried it and it works.
Reply With Quote
  #6 (permalink)  
Old 05-21-2010, 06:31 PM
kleszcz's Avatar
New Pligger
 
Join Date: Dec 2009
Posts: 8
Quote:
Originally Posted by mendim View Post
the best way i tested to speed up my pligg site is this,add this code to .htaccess
It works. That's the great speed up for me. Thanks for sharing.
Reply With Quote
  #7 (permalink)  
Old 05-21-2010, 07:24 PM
Casual Pligger
Pligg Version: 1.1.5
Pligg Template: default
 
Join Date: Jan 2008
Posts: 38
Quote:
Originally Posted by kleszcz View Post
It works. That's the great speed up for me. Thanks for sharing.
Yes,also i applied this at my site,and works fine
Reply With Quote
  #8 (permalink)  
Old 05-22-2010, 10:53 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Another thing to try is adding the following to the top of your .htaccess
Code:
<ifmodule mod_php4.c>
php_value zlib.output_compression 16386
</ifmodule>
I tried it along with the other speed up code posted and it is working quite well on my test server.

Here is the results after adding this to the Pligg demo.
34.66 KB Loads in 0.38 seconds

Last edited by chuckroast; 05-22-2010 at 11:00 PM.
Reply With Quote
  #9 (permalink)  
Old 05-23-2010, 12:04 AM
anudeepkanwar's Avatar
Constant Pligger
 
Join Date: Sep 2009
Location: India
Posts: 103
Send a message via MSN to anudeepkanwar
Quote:
Originally Posted by mendim View Post
the best way i tested to speed up my pligg site is this,add this code to .htaccess
Hi where to add this code in .htaccess
Regards
Reply With Quote
  #10 (permalink)  
Old 05-23-2010, 12:26 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Quote:
Originally Posted by anudeepkanwar View Post
Hi where to add this code in .htaccess
Regards
I added it to the top.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ok I set up Pligg now what? chuckroast Wiki Articles 3 05-26-2011 05:28 PM
Pligg integration with SMF Forum autoinc Questions and Comments 66 08-27-2010 04:04 AM
Can users submit word documents to a Pligg site? legalbeavers Questions and Comments 2 04-23-2008 02:55 AM
How profitable is a Pligg site ? Ricky Questions and Comments 32 10-17-2007 04:42 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development