Jump to content

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

How to Speed Up and Optimise CS-Cart Version 4? Rate Topic   * * * * * 1 votes

 
  • nattila
  • Member
  • Members
  • Join Date: 25-Jun 12
  • 30 posts

Posted 04 October 2013 - 10:01 AM #1

Hi,
Although some user reported page speed performace improvements on version 4, my out of the box demo got really bad result on GtMetrix. Webmaster Tools also reported high response time pages in my sitemap.

GtMetrix:
Page Speed Grade: F
Yslow: C
Page load time: 6.44s

WT: Some URLs listed in this Sitemap have a high response time.


Do you have the same problem? Did someone speed improvements for version 4 like in this post for version 3? Please share if you have any idea.

 
  • Ausy
  • Advanced Member
  • Trial users
  • Join Date: 07-Mar 12
  • 56 posts

Posted 04 October 2013 - 12:47 PM #2

My personal experience is version 4 is not faster than 3, specially backend. My backend takes 3-4 seconds no matter what I click on. I have VDS with couple of other sites on it which work very fast and have no CDN. Does anyone know the best setting for "cache backend"? // Available backends: file, sqlite, database, redis

Perhaps there are some additional tweaks but I have implemented some.

in config_local.php

'gzip_css_js' => true, // gzip compiled css/js files

Also I have CDN with Amazon working. Home Page load is still 4.84 seconds according to GtMetrix Page Speed B 86% YS Slow 85%

But my old 3.06 store scored the same without CDN.

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

Posted 04 October 2013 - 07:08 PM #3

have you tried smart optimizer

John

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


 
  • Ausy
  • Advanced Member
  • Trial users
  • Join Date: 07-Mar 12
  • 56 posts

Posted 04 October 2013 - 08:40 PM #4

have you tried smart optimizer

John


I did John but it throws an error so unable to use it unless someone knows how to fix that. SmartOptimizer worked very well for my version 3.6 site but not working on 4.02

SmartOptimizer Error: File not found (../var/cache/misc/statics/js/tygh/scripts-2afd9d82015fdddf2f792e2f0a92ce401380919217.js).


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

Posted 04 October 2013 - 11:36 PM #5

clear the folder /var/cache/ via ftp and try again, also I had to disable the smart optimizer .htaccess in its own folder as per the instructions from the site.

JOhn

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


 
  • Ausy
  • Advanced Member
  • Trial users
  • Join Date: 07-Mar 12
  • 56 posts

Posted 05 October 2013 - 12:32 PM #6

Still unable to get it working. Is it working on your version 4 site John?

 
  • nattila
  • Member
  • Members
  • Join Date: 25-Jun 12
  • 30 posts

Posted 07 October 2013 - 02:26 PM #7

any other idea? version 4 is still very slow. :(

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

Posted 07 October 2013 - 02:59 PM #8

Still unable to get it working. Is it working on your version 4 site John?



Sorry for late reply travelling at the moment I am just in the process of installing v4 but dont see why smart optimizer wont work. Did make a difference on my previous versions. Just FYI out of the box fresh install of v4 on my sub domain with just demo products is B & B on gt metrix.
I will try SO when I get back and let you know

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


 
  • kjpp
  • Newbie
  • Members
  • Join Date: 22-Nov 12
  • 12 posts

Posted 07 October 2013 - 04:29 PM #9

I just test my site with cs-cart 4.0.2

Page Speed Grade:A
AYSlow Grade:A
Page load time: 3.67s
Total page size: 339KB
Total number of requests: 27

I have about 130k products and 4k categories and after upgrade to version 4.0.2 I realy see faster site loading.
MY new shop: Super-BMW.pl

 
  • Roto
  • Advanced Member
  • Banned
  • Join Date: 23-May 12
  • 127 posts

Posted 08 October 2013 - 06:40 PM #10

I'm also looking information about it. my store is very slow too..
...

 
  • nattila
  • Member
  • Members
  • Join Date: 25-Jun 12
  • 30 posts

Posted 09 October 2013 - 12:20 PM #11

Total page size: 339KB

Hmm, it is very interesting. On my site (4.0.1) only these two files are more than 770 KB. How can it be? :confused: I made some css modifications, that's all.
  • 473KB - /var/cache/misc/statics/js/tygh/scripts-0b4ed0f204565d4856b8c219abea2695.js?ver=4.0.1
  • 303 KB - /var/cache/misc/statics/design/themes/basic/css/standalone.af70e58d92213bf3480554ac8000395a.css


 
  • nattila
  • Member
  • Members
  • Join Date: 25-Jun 12
  • 30 posts

Posted 16 October 2013 - 12:41 PM #12

Are these config options available in version 4?

$config['tweaks'] = array (
'js_compression' => true, // enables compession to reduce size of javascript files
'check_templates' => false, // disables templates checking to improve template engine speed
'inline_compilation' => true, // compiles nested templates in one file
'anti_csrf' => false, // protect forms from CSRF attacks
'disable_block_cache' => true, // used to disable block cache
'join_css' => true, // is used to unite css files into one file
'allow_php_in_templates' => false, // Allow to use {php} tags in templates
'disable_localizations' => true, // Disable Localizations functionality
'disable_google_base' => true, //Disable obsolete google base functionality
);

 
  • nattila
  • Member
  • Members
  • Join Date: 25-Jun 12
  • 30 posts

Posted 04 November 2013 - 11:27 AM #13

I upgraded to 4.0.2 and it has a much better speed. :)

 
  • Roto
  • Advanced Member
  • Banned
  • Join Date: 23-May 12
  • 127 posts

Posted 04 November 2013 - 02:05 PM #14

I upgraded to 4.0.2 and it has a much better speed. :)

with some tuning could be faster
...

 
  • Roto
  • Advanced Member
  • Banned
  • Join Date: 23-May 12
  • 127 posts

Posted 12 December 2013 - 09:35 PM #15

up
...

 
  • paulierco
  • Newbie
  • Members
  • Join Date: 15-Apr 12
  • 2 posts

Posted 11 January 2014 - 06:56 PM #16

up

 
  • grafis
  • Junior Member
  • Members
  • Join Date: 12-Jan 11
  • 150 posts

Posted 12 January 2014 - 02:44 PM #17

config.local.php has one option in 4.x - when set to true it did nothing to my GtMetrix scores of 70 page speed, 77 yslow - 'gzip_css_js' => true // gzip compiled css/js files

With 4.x do make sure you have Development Settings OFF in Design > Template Editor > Development Settings. The admin nags you if you leave them on so I doubt it's issue for anyone.

Major speed increase - I added the compression and header expire code below to my .htaccess and my score went to 99 page speed, 89 Yslow. Expires date needs to manually changed. Feels good but the question would be what impact could this have on site features and functionality?


#Expires
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">
Header set Expires "Thu, 15 Apr 2015 20:00:00 GMT"
Header unset ETag
FileETag None
</FilesMatch>

#Gzip
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>

CS-Cart 4.7.1


 
  • Roto
  • Advanced Member
  • Banned
  • Join Date: 23-May 12
  • 127 posts

Posted 12 January 2014 - 03:07 PM #18

Grafis, thanks for share that codes! help me to improve my Expires headers!
the only problem that I have now is this:

Remove query strings from static resources

***/var/cache/misc/statics/js/tygh/scripts-31039xxxxxxxxxx.js?ver=4.0.3
***/js/tygh/exceptions.js?ver=4.0.3
***/js/tygh/product_image_gallery.js?ver=4.0.3

Specify a cache validator

***/js/lib/jcarousel/jquery.jcarousel.js
***/js/tygh/exceptions.js?ver=4.0.3
***/js/tygh/product_image_gallery.js?ver=4.0.3

Someone know how can I remove those "?ver=4.0.3"?

btw, my score now in gtmetrix:

Posted Image

not bad huh? 8) I'm using the cdn service with Amazon cloudfront.
...

 
  • grafis
  • Junior Member
  • Members
  • Join Date: 12-Jan 11
  • 150 posts

Posted 20 January 2014 - 02:24 PM #19

I haven't been able to figure out how to do expires for objects with a variable like CS-Cart JS files - ?ver=4.0.3

I did find this well documented example with near future expire dates that magically adjust (my example code above has fixed dates). Seems to give about the same results. http://magazine.joom...t-FREAKIN-Works

CS-Cart 4.7.1


 
  • jimr78
  • Member
  • Members
  • Join Date: 08-Feb 12
  • 15 posts

Posted 21 March 2014 - 07:54 PM #20

config.local.php has one option in 4.x - when set to true it did nothing to my GtMetrix scores of 70 page speed, 77 yslow - 'gzip_css_js' => true // gzip compiled css/js files

With 4.x do make sure you have Development Settings OFF in Design > Template Editor > Development Settings. The admin nags you if you leave them on so I doubt it's issue for anyone.

Major speed increase - I added the compression and header expire code below to my .htaccess and my score went to 99 page speed, 89 Yslow. Expires date needs to manually changed. Feels good but the question would be what impact could this have on site features and functionality?


#Expires
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">
Header set Expires "Thu, 15 Apr 2015 20:00:00 GMT"
Header unset ETag
FileETag None
</FilesMatch>

#Gzip
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>


I just added this code to my website and it cuts the page load time in HALF! Thank you!