Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Speed Up Your CS-Cart eCommerce Website - Step 1 Rate Topic   * * * * * 1 votes

 
  • Lee Li Pop
  • Senior Member
  • Members
  • Join Date: 07-Mar 08
  • 941 posts

Posted 18 November 2010 - 04:06 AM #21

Hello Stormbreaker,

Hi thank you for the hints, the website is really faster now.
But I have a problem. I have some attachments (.pdf files mostly) and with the compression i'm not able anymore to open them or it requires more than 5 minutes to do it. I had to remove the gzip compression at the end of the day.

I had not the mod_deflate originally in Loaded Modules, but I followed the procedure and it worked.

Any idea?


Yes, I am stubborn:

A reliable web hosting company is necessary in business.

Hi thank you for the hints, the website is really faster now.
But I have a problem. I have some attachments (.pdf files mostly) and with the compression i'm not able anymore to open them or it requires more than 5 minutes to do it. I had to remove the gzip compression at the end of the day.

I had not the mod_deflate originally in Loaded Modules, but I followed the procedure and it worked.

Any idea?


Please, Stormbreaker, if you can afford it, choose another web hosting company. You are a new comer here, and you have a really stupid basic trouble. Believe me, to have NOT the mod_deflate is incredible in 2010!

Please, change for a reliable hosting company, otherwise, you will discourage quickly yourself.

*****

However, Stormbreaker, if "mod_deflate" is NOT enable, you can read this: Enabling gzip compression if mod_deflate is not enabled

*****

Seems your mod_deflate has been configured incorrectly. Please, ask help from your web hosting company.

Here is a fine configuration of deflate.conf (only root can be able to change it):

<IfModule mod_deflate.c>
    DeflateCompressionLevel 3
</IfModule>
 
<Location />
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/atom_xml
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-httpd-php
    AddOutputFilterByType DEFLATE application/x-httpd-fastphp
    AddOutputFilterByType DEFLATE application/x-httpd-eruby
 
    SetOutputFilter DEFLATE
 
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.avi$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.mov$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary
    SetEnvIfNoCase Request_URI \.rm$ no-gzip dont-vary
 
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
 
    # Make sure proxies don't deliver the wrong content
    Header append Vary User-Agent env=!dont-vary
</Location>

So, Stormbreaker, you can test this into your ".htaccess":

<IfModule mod_deflate.c>
SetOutputFilter DEFLATE

# compress content with type html, text, js, and css
AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript text/xml image/svg+xml application/javascript application/x-javascript application/atom_xml application/rss+xml application/xml application/xhtml+xml application/x-httpd-php application/x-httpd-fastphp

# Properly handle old browsers that do not support compression  
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# Explicitly exclude binary files from compression just in case
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.avi$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mov$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.rm$ no-gzip dont-vary

# properly handle requests coming from behind proxies
Header append Vary User-Agent env=!dont-vary
</IfModule>


Lee Li Pop
.
If All Else Fails, Read The Instruction Manual! Knowledge Base 2.x + CS-Cart Instruction Manual

Hosted at Pair.com since 2000. Zero hacking attempts during first 11 years... And counting!

 
  • Lee Li Pop
  • Senior Member
  • Members
  • Join Date: 07-Mar 08
  • 941 posts

Posted 18 November 2010 - 04:09 AM #22

Hello Clips,

Does this just work for CS 2.? or does it work for 1.3.5 sp4?


Works for ALL website, with or without CS-Cart!


Lee Li Pop
.
If All Else Fails, Read The Instruction Manual! Knowledge Base 2.x + CS-Cart Instruction Manual

Hosted at Pair.com since 2000. Zero hacking attempts during first 11 years... And counting!

 
  • KBM
  • Senior Member
  • Members
  • Join Date: 08-Dec 08
  • 252 posts

Posted 18 November 2010 - 04:43 AM #23

Awesome.. I may try this in the near future. I'm too scared to do anything around the holidays. :)

Version 4.3.9

 


 

Posted 18 November 2010 - 08:38 PM #24

Hi,

Just wanted to say a big thanks to Lee for all of these tips.

Has anyone tried out the Apache module created by Google. It's supposed to automate some of the things that their Page Speed tool highlights.

Details here:- http://googlecode.bl...run-faster.html
Also, has anyone had any experience with CloudFlare, http://www.cloudflare.com/
I did try it on one of my other sites and it did seem to make a difference to load times.

It's fairly easy to use, just need to change your DNS. I've not tried it with a CS Cart site as the free account can't be used on sites that have SSL enabled.

So who's going to be the guinepig and try either of these out :D

John
Take everything you like seriously, except yourselves. - Rudyard Kipling

 
  • johnbol1
  • Never Re
  • Members
  • Join Date: 23-Feb 10
  • 4915 posts

Posted 18 November 2010 - 09:48 PM #25

I say a big round of applause for the lady in red for spending time to educate everyone with these things in such a constructive and amusing way.:) :) :) :)

Custom printed hi visibility clothing sale the UK's online hivis safety shop
v4.5.2


 
  • Lee Li Pop
  • Senior Member
  • Members
  • Join Date: 07-Mar 08
  • 941 posts

Posted 19 November 2010 - 01:43 AM #26

I say a big round of applause for the lady in red for spending time to educate everyone with these things in such a constructive and amusing way.:)


Hello John,

I'm embarrassed... :oops:

Thank you for your opinion, know that it affects me in a positive way. Especially since the search time of these tricks took me several weeks.

Thanks again!


Lee Li Pop
.
If All Else Fails, Read The Instruction Manual! Knowledge Base 2.x + CS-Cart Instruction Manual

Hosted at Pair.com since 2000. Zero hacking attempts during first 11 years... And counting!

 
  • stormbreaker
  • Junior Member
  • Trial users
  • Join Date: 10-Nov 10
  • 3 posts

Posted 08 December 2010 - 03:09 PM #27

Hi

I want to say a big thank you to Lee Le Pop for the help.
I apologise for the 2 consecutive posts i wrote before, but i couldn't see my post :( so i wrote a second to check if it was my laptop problem.
I figured out what was the problem with the mod_deflate, we were runnig cs-cart on IIS6 server.
Now we moved on a Linux server, moved cs-cart in there and proceeded with the first phase tuning.

It works fine

Now I will go to next step

Thx again

 
  • clips
  • Aged Resident Loon
  • Members
  • Join Date: 14-Jan 07
  • 1650 posts

Posted 21 December 2010 - 11:47 PM #28

We worked through this step and we notice the speed difference already. We also went from D's and F's to C's. Still a few F's on some of the items.
Thanks for the excellent advice!
Regards,
Jim

 
  • cwpeter
  • Junior Member
  • Members
  • Join Date: 06-Nov 10
  • 0 posts

Posted 04 January 2011 - 10:54 PM #29

Thanks so much Lee Li Pop, just tested my site and I was stunned! Went from C's to A's

Posted Image
Discount Perfumes, Discount Fragrances - NZ Perfume

 
  • Lee Li Pop
  • Senior Member
  • Members
  • Join Date: 07-Mar 08
  • 941 posts

Posted 05 January 2011 - 02:26 AM #30

Hello Cwpeter,

Thanks so much Lee Li Pop, just tested my site and I was stunned! Went from C's to A's

Posted Image


Posted Image
Congratulations!

Wonderful with CS-CART: version 2.1.2 PROFESSIONAL!

I dream to succeed as you with 2.1.2...

Very hard work!


Lee Li Pop
.
If All Else Fails, Read The Instruction Manual! Knowledge Base 2.x + CS-Cart Instruction Manual

Hosted at Pair.com since 2000. Zero hacking attempts during first 11 years... And counting!

 
  • clips
  • Aged Resident Loon
  • Members
  • Join Date: 14-Jan 07
  • 1650 posts

Posted 09 January 2011 - 02:59 AM #31

Any idea if these changes add more strain on the ram?
Regards,
Jim

 
  • Lee Li Pop
  • Senior Member
  • Members
  • Join Date: 07-Mar 08
  • 941 posts

Posted 09 January 2011 - 05:31 AM #32

Hello Clips,

Be aware... Cwpeter is NOT a newcomer in the field. He thanks me, but, if you take a look of the history of his Performance Report, you can understand what I said:

http://gtmetrix.com/...#report-history

His first Yslow was: 90

His first Page Speed was: 80

Basic "demo.cs-cart" results are:

Yslow: 67

Page Speed: 70

Cwpeter is nice to thank me, however, I know is more clever than me on the field Posted Image

Nevertheless, Clips, if you follow my advices, you can do the same. And better with 2.1.2, because I get these results:

YSlow: 94

Page Speed: 95


Steps are: Gzip + SmartOptimizer + Combination of every CSS files in only one + Combination of every JS files in only one

Nota Bene:

I have NO Content Distribution Network (CDN) and NONE special Apache tweaks, and ZERO optimized server settings, because I am on a shared server.

Of course, without any negative impact on the speed, stability, security (and more...) of the server.

So, Clips, you can do the same if you are ready!


Lee Li Pop
.
If All Else Fails, Read The Instruction Manual! Knowledge Base 2.x + CS-Cart Instruction Manual

Hosted at Pair.com since 2000. Zero hacking attempts during first 11 years... And counting!

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12044 posts

Posted 09 January 2011 - 06:37 AM #33

@clips - by definition, this will use a bit more RAM due to the pages being compressed before being sent. How much is more a function of the "compressability" of the page.

But I don't think it should be an impact that you see. Given that the machine is a virtual memory machine, you can probably run some system tools to determine what the big memory processes are. My bet is that httpd is NOT one of them....

What specifically are you seeing. I know in another post you also metioned ram issues but I'm not really sure what you mean by that. Is your server shared, dedicated? What OS? How much RAM? What size of a paging file do you have configured?

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • clips
  • Aged Resident Loon
  • Members
  • Join Date: 14-Jan 07
  • 1650 posts

Posted 10 January 2011 - 04:45 PM #34

... Is your server shared, dedicated? What OS? How much RAM? What size of a paging file do you have configured?

Our server is a VPS.
OS = CentOS Linux 5.x
Everything was going along really smooth on the server. Then I made a few changes on Jan. 5 and added the Help Desk and my server started "Ooming".
The only changes I made were in trying to speed up the site, change the skin (from other link) and added the Help Desk. Right now the site is no longer Ooming as it was doing on a daily basis for the last few days. I have turn the Help Desk on and there are no new "Ooming" problems there yet. I did not turn off or change any of the "cache" stuff here. At this point I am going to assume that the {debug} code that I put on the "my_changes" file was killing resources and causing the server to "Oom" and start killing off processes.

So again, I do NOT believe any of the changes made in this thread caused any problems. Sorry to have bothered.
Regards,
Jim

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12044 posts

Posted 10 January 2011 - 09:01 PM #35

That's not much RAM....

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • clips
  • Aged Resident Loon
  • Members
  • Join Date: 14-Jan 07
  • 1650 posts

Posted 10 January 2011 - 09:42 PM #36

Yep, it is smaller than we normally have...but normally we have the "burstable" that is much higher too, but this host believes that "burstable" ram is a bad thing. I'm sure about half the people here on the forum would say one thing and the rest would say something else. Our current host says it is "guaranteed" RAM. I even notice on the packages you offer on your site that you don't show how much RAM is guaranteed. It seems everyone kind of does their own thing. The main thing is we easily survived the month of December (with just under 1000 orders on the server) and didn't hit the "Ooming" until something I did Jan. 5th.

To be honest, we are still testing out the hosting world as we've been burned recently. We are somewhat pleased so far with our current host, but still extremely cautious.

The good part is on this host I was able to follow the advice of this thread and speed up my sites. With the host I had a few months ago I had major problems with speed.
Regards,
Jim

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12044 posts

Posted 10 January 2011 - 11:23 PM #37

I even notice on the packages you offer on your site that you don't show how much RAM is guaranteed.

I don't provide VPS's. My clients are all on virtual servers and it is my responsibility to ensure that the underlying server has the resources necessary to support their stores in a performant manner.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 

Posted 15 January 2011 - 02:46 AM #38

Just wanted to say "Thank You" to everyone.. Especially Lee Li Pop... Our site on gtmetrix.com

Before mod_deflate and SO..
66% / 73%

Now with changes done..
82% / 80%

Very noticeable difference.. Thank You..

Genie
CarStickersDecals

Elkhorn Graphics LLC
Cs-Cart 4.11.2


 
  • Lee Li Pop
  • Senior Member
  • Members
  • Join Date: 07-Mar 08
  • 941 posts

Posted 16 January 2011 - 04:45 AM #39

Hello Genie,

Just wanted to say "Thank You" to everyone.. Especially Lee Li Pop... Our site on gtmetrix.com

Before mod_deflate and SO..
66% / 73%

Now with changes done..
82% / 80%

Very noticeable difference.. Thank You..

Genie
CarStickersDecals


Thank you!

However, you can go higher to following my others steps:

Step 1 - Gzip (this one)
Step 2 - SmartOptimizer
Step 3 - Minify CSS + Do the same with Java Script files with this tool: JSCompress. Please, select "Minify (JSMin)" option.
Step 4 - Combine CSS + Do the same with Java Script files
Step 5 - .htaccess

Yes, by applying all the advice from these 7 steps (5 steps + 2 additional steps for Java Script files), you can easily get a score above 90 with CS-Cart 2.1.2, as I did:

http://forum.cs-cart...6770#post106770


Lee Li Pop
.
If All Else Fails, Read The Instruction Manual! Knowledge Base 2.x + CS-Cart Instruction Manual

Hosted at Pair.com since 2000. Zero hacking attempts during first 11 years... And counting!

 
  • Flow
  • Super Duper and Amazingly Sexy Senior
  • Members
  • Join Date: 13-Oct 10
  • 2394 posts

Posted 16 January 2011 - 11:45 AM #40

I get these results:

YSlow: 94

Page Speed: 95


Lee Li Pop


You see? You ARE the Speedmeister!

When life hands you lemons, bring on the Tequila baby!