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

 
  • miracles
  • Senior Member
  • Members
  • Join Date: 19-Sep 07
  • 1533 posts

Posted 07 April 2011 - 06:24 AM #61

Why this topic is not sticky. Useful information. Thanks dude.
CS-CART 3.0.6 GRENADE

Please vote for CDN Add-on

For SEO Article Submission, Forum Profile Links, Web 2.0 links, contact me through PM.

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

Posted 07 April 2011 - 05:53 PM #62

Just a quick update. I looked at jegesmaci store. It seems that the mailchimp errors were from my having an outdated version on my site that was downloaded after purchase. After he logged out/in it upgraded itself to the correct version. This is why the mismatch between line numbers in his error log and actual file data. But I could not get to his error log with info provided so I could not confirm that the errors were in fact stopped.

I have verified the version currently on my site for download as now being the latest.

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.


 
  • S-Combs
  • Senior Member
  • Members
  • Join Date: 09-Nov 06
  • 692 posts

Posted 07 April 2011 - 06:23 PM #63

I've been working on that account all morning Tony trying to help him to resolve a few other issues and see that those Divide by 0 errors haven't reoccurred since the 4th.

There may be a problem with the 128MB memory limit in mailchimp_helper_funcs.php though. He has gotten a few new "Allowed memory size of 134217728 bytes exhausted" in the last couple days (that servers PHP memory limit is 256MB).. I have grepped his entire account and can find nowhere else in any coding where a 128MB limit is being set. I also haven't yet been able to trace exactly what is requiring so much memory and why but I'm still working on it.

His error logs are in the root of the store
Secure Cart Hosting
[CS-Cart Optimized Solutions and Server Management]

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

Posted 07 April 2011 - 06:46 PM #64

here may be a problem with the 128MB memory limit in mailchimp_helper_funcs.php though.

It should only set it if the current value is less than 128MB.
define('MC_MB', 1024*1024);
define('MC_WANTED_MB', MC_MB * 128);
$mb = ini_get('memory_limit');
if( $mb < MC_WANTED_MB )
        @ini_set('memory_limit', '128M');

I'll add some debugging info to the mailchimp log showing what ini_get is returning at that point and what (if anything) it's being set to.

I have to do some errands but will do this when I get back.

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.


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

Posted 07 April 2011 - 07:06 PM #65

Good catch Scott, Bug for memory_limit was mine.
Changed:
$mb = ini_get('memory_limit');
to
$mb = str_replace('M', '', ini_get('memory_limit')) * MC_MB;

New version of mailchimp (2.1.13) has been created and will be upgraded next time it's scheduled to do so based on client configuration (usually within 24 hours).

Now I'm late so got to run. Client's site is updated with the change.

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.


 
  • jegesmaci
  • Senior Member
  • Members
  • Join Date: 05-Oct 09
  • 403 posts

Posted 07 April 2011 - 07:59 PM #66

I can't say enough good things about EZ-Merchant Solutions and Secure Cart Hosting. They have fantastic service and I am very please with them.

Thank you so much for helping me have a more optimized site.

Adam

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

Posted 08 April 2011 - 05:47 AM #67

Gee, unfortunately I didn't do anything but fix one bug related to ensuring enough memory was configured. But that certainly would not have helped your performance. That your site is using more than 128MB in PHP in itself is worrisome.

Anytime there's an issue with any of my addons, it is my responsibility to investigate and try to resolve it. I'm happy to say it doesn't come up too often.

I'm guess Scott found something if your speed went up.

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.


 
  • ernestor
  • Member
  • Members
  • Join Date: 27-Jun 06
  • 56 posts

Posted 25 April 2011 - 11:30 PM #68

Hi Lee Li Pop
really appreciate your contributions
find them very useful and well explained.

Checked in my PHP info
don;t have mod_deflate
but have:
HTTP_ACCEPT_ENCODING gzip, deflate
under environment

what does this mean?

thanks so much!

 
  • mikee
  • Senior Member
  • Members
  • Join Date: 20-Jul 09
  • 137 posts

Posted 05 June 2011 - 09:11 PM #69

I added

# Gzip here, because my web hosting company does NOT turn on gzip "mod_deflate".
if(!ob_start("ob_gzhandler")) ob_start();

to index.php and

<IfModule mod_deflate.c>
<FilesMatch "\.(js|css|php|html)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

to .htaccess. Whatsmyip.org/http_compression/ says that my website is now gzipped, but when I go to Gtmetrix.com it recommends I should enable Gzip compression.... and my page speed is 71%, YSlow is 68%, which I think isn't great. Any ideas why?

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

Posted 05 June 2011 - 10:53 PM #70

Get your host to turn on the apache level mod or add it as an extension. Can't imagine any host that would prefer to have their network swamped versus using a little more cpu. Who do you host with?

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.


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

Posted 06 June 2011 - 03:25 AM #71

Hello Mikee,

my page speed is 71%, YSlow is 68%, which I think isn't great. Any ideas why?


What were your results before?

We can assess the effectiveness (or not) only with the previous results.

You need to know, try to follow my advices is a long and painfull way (5 hard steps).

Or, you have the automatic easy way with WEBO:

http://forum.cs-cart...ead.php?t=17664

Here is a review of WEBO by Tirade:

http://forum.cs-cart...ead.php?t=17895

Remember what I wrote before:

Hello The Tool,

I agree with you, WEBO is quite expensive, however, it's a reliable plug and play module, and perfect for newbies or in hurry people.

My "solution" comes from my experience, nothing is guarantee, just time spent...



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!

 
  • mikee
  • Senior Member
  • Members
  • Join Date: 20-Jul 09
  • 137 posts

Posted 06 June 2011 - 08:03 AM #72

Thanks Tbirnseth & Lee Li Pop. I host through 1clickmedia.co.uk, but I am not sure which hosting company they use themselves.

I removed the code I added to the .htaccess & index.php, just to see what my scores were before the code, and they are the same as with the code : my page speed is 71% & YSlow is 68%. Obviously whatsmyip.org/http_compression/ says that my website is not gzipped. Have I done something wrong, or do I need to contact my hosting company to turn on the apache level mod or add it as an extension?

Many thanks.

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

Posted 06 June 2011 - 05:23 PM #73

Did you put the .htaccess code in the root of your shop? So NOT in the smartoptimizer folder?

Please see here for a step by step smartoptimizer installation I wrote some weeks ago: http://forum.cs-cart...ead.php?t=25136

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


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

Posted 06 June 2011 - 05:51 PM #74

Hello Mikee,

Open the Administration tab of your administration panel. Click on the Database link, then click on the php information link in the top left corner of the page.

Now, in the new PHP info page, could you check if this line exist:

_SERVER["HTTP_ACCEPT_ENCODING"]


Is so, what is the text following?


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!

 
  • mikee
  • Senior Member
  • Members
  • Join Date: 20-Jul 09
  • 137 posts

Posted 06 June 2011 - 09:33 PM #75

Hi Flow, the .htaccess file is in the root of the shop (/httpdocs folder). I don't think I have smart optimizer installed, unless it is installed in the latest version of CS Cart.

Lee Li Pop, I do have the line _SERVER["HTTP_ACCEPT_ENCODING"] in the php info pages, and next to it says gzip & deflate. I am wondering if I have made a mistake somewhere, maybe when adding the code (in my previous post)?

Thanks for your help!

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

Posted 08 June 2011 - 07:06 PM #76

Hello Mikee,

Very strange...

Gzip via PHP seems not to be blocked, then, you should be able to Gzip your pages. I don't understand why your pages are not Gziped (or more accurately why your results are same exactly).

Do you feel a speed difference on displaying a page with and without this Step 1?

Two choices:

1 - Install Yslow! add-on for Firefox to check carefully your "Before" and "After" results once more time:

https://addons.mozil...ox/addon/yslow/

2 - Contact your web hosting support to try to get some advices.


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!

 
  • mikee
  • Senior Member
  • Members
  • Join Date: 20-Jul 09
  • 137 posts

Posted 08 June 2011 - 08:07 PM #77

Hi Lee Li Pop

I installed YSlow, and tested my site with & without the new code in index.php & .htaccess files. Unfortunately, the YSlow reading is the same, 70% :(

As I mentioned before, I added the code to index.php directly under the copyright notice, and in .htaccess I added the code directly under the first line "DirectoryIndex index.html index.php".

My site is www.capitalcaterers.co.uk , in case you can tell me if I have done something wrong? Otherwise I guess I will contact my web hosting company.

Thanks again for your help

Mike

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

Posted 09 June 2011 - 02:59 AM #78

Hello Mike,

My site is www.capitalcaterers.co.uk


Everything is OK, well, just for TEXT Gzip! Because, you are at the whole begining of 5 difficult steps, and you must go ahead right now with Step 2.

Why can I say that?

1 - Compression Verification is OK: http://www.whatsmyip...tp_compression/

2 - Line number 1 "GZip Text" is OK: http://www.webpagete...e_optimization/

3 - Enable gzip compression is F (29): http://gtmetrix.com/....co.uk/IHWGwJdz

So, now, click on "Enable gzip compression" link to see more details. You can see CSS and JS are NOT Gziped at this moment. You're on the way! Now, you need to Gzip them with Smartoptimizer at Step 2:

Speed Up Your CS-Cart eCommerce Website - Step 2

If you want more, you need to go with Step 3, and more!

Speed Up Your CS-Cart eCommerce Website - Step 3

Speed Up Your CS-Cart eCommerce Website - Combine CSS - Step 4

VERY important last step:

Speed Up Your CS-Cart eCommerce Website - .htaccess - Step 5

Keep confidence, there is always somebody to help you.


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!

 
  • mikee
  • Senior Member
  • Members
  • Join Date: 20-Jul 09
  • 137 posts

Posted 09 June 2011 - 08:49 AM #79

Thanks so much Lee Li Pop, I shall go on to step 2 and hopefully my website can run a bit faster :)

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

Posted 09 June 2011 - 04:12 PM #80

Hello Mike,

Fixed -- I deleted the .htaccess file from the /smartoptimizer folder, and now my homepage is up to YSlow score of 88! :D


Well, you are in the middle of the way... However, from this side of the Channel (France) your website is as fast as light.

Go to Step 3, 4 and 5, your website will be even faster. ;)
Do you deliver Paris area? OK, so I want some Chinese Vegetable Dimsum! Posted Image


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!