Jump to content

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

Get Maximum out of 4.3.1: The Best Server Configuration. Rate Topic   * * * * * 1 votes

 
  • mokeshop
  • Senior Member
  • Members
  • Join Date: 27-Jul 12
  • 1009 posts

Posted 13 May 2015 - 02:27 PM #61

guy... (rafas) why do you use gifs? they are large (MB)

 
  • kogi
  • Senior Member
  • Members
  • Join Date: 16-Aug 07
  • 620 posts

Posted 13 May 2015 - 11:44 PM #62

Are there better choices for someone on shared hosting could use?
Thanks,
Bob


If your host supports it. Sqlite will gave better speed than file

find / -type f -name '*.base' -exec chown kogi.kogi {} \;

 
  • Onkel_Sid
  • Junior Member
  • Members
  • Join Date: 04-Sep 10
  • 301 posts

Posted 14 May 2015 - 07:50 AM #63

guy... (rafas) why do you use gifs? they are large (MB)


I think he is referring to the animation.

Stop smoking start vaping: Dampskyen.no


 
  • kickoff3pm
  • Senior Member
  • Members
  • Join Date: 18-Aug 10
  • 682 posts

Posted 14 May 2015 - 09:29 AM #64

Shared hosing is possible but you'll need to work hard to configure the site and the images.

1. First thing you need to do is uninstall all addons that are not esential.
2.Then reduce the items on a page to the minimum esential.
3. Steer well clear of filters altogether.
4. Reduce the sorting and remove things like compare if you don't need them.
5. Don't use category header images if you don't need them.
6. Run all image though an optimisation script that reduced the colours to the minimum and removes comments and meta data within the file while reducing the size of the image to your maximum image size you will use on your site.
7. Using those setting for image means you can set cs-cart opt setting to 100% and so leave you a little room to improve further if needed.

Also think about using Amazon cloudfront for your images, that makes a big difference.
http://matchdaymemories.com - Football Memorabilia Via Cs-Cart V3
http://www.outadwords.com - Free Marketing For You Site.
http://www.alternativestoebay.com - Join The Free Ecommerce Community.

 
  • Rafass
  • Senior Member
  • Members
  • Join Date: 16-Jan 14
  • 304 posts

Posted 14 May 2015 - 10:07 AM #65

Shared hosing is possible but you'll need to work hard to configure the site and the images.

1. First thing you need to do is uninstall all addons that are not esential.
2.Then reduce the items on a page to the minimum esential.
3. Steer well clear of filters altogether.
4. Reduce the sorting and remove things like compare if you don't need them.
5. Don't use category header images if you don't need them.
6. Run all image though an optimisation script that reduced the colours to the minimum and removes comments and meta data within the file while reducing the size of the image to your maximum image size you will use on your site.
7. Using those setting for image means you can set cs-cart opt setting to 100% and so leave you a little room to improve further if needed.

Also think about using Amazon cloudfront for your images, that makes a big difference.


1. First thing you need to do is uninstall all addons that are not esential.
I have only this addons:
Posted Image
2.Then reduce the items on a page to the minimum esential.
Few. only 9

3. Steer well clear of filters altogether.
There are not filters

4. Reduce the sorting and remove things like compare if you don't need them.
nothing of that are running there.

5. Don't use category header images if you don't need them.
nothing. wow..

6. Run all image though an optimisation script that reduced the colours to the minimum and removes comments and meta data within the file while reducing the size of the image to your maximum image size you will use on your site.
All images are optimised.

7. Using those setting for image means you can set cs-cart opt setting to 100% and so leave you a little room to improve further if needed.
Done.

Also think about using Amazon cloudfront for your images, that makes a big difference.
Cloudfront are running correctly.

--

I'm not in a shared hosting, I'm in a good SSD VPS, but I can not install redis and acp there. I have other websites running in the hosting. all is working perfect.

judge for yourself the performance. I am willing to change anything if necessary.

Thanks!

 
  • kickoff3pm
  • Senior Member
  • Members
  • Join Date: 18-Aug 10
  • 682 posts

Posted 14 May 2015 - 10:16 AM #66

Rafass, Give the url to your site and I'll take a look later.
http://matchdaymemories.com - Football Memorabilia Via Cs-Cart V3
http://www.outadwords.com - Free Marketing For You Site.
http://www.alternativestoebay.com - Join The Free Ecommerce Community.

 
  • mokeshop
  • Senior Member
  • Members
  • Join Date: 27-Jul 12
  • 1009 posts

Posted 16 May 2015 - 11:25 PM #67

Hi guys,

Here I would like to write some tips that will make your CS-Cart 4.3.1 really fast. We use this configuration on our demo server: demo.cs-cart.com

Here is what you should do:
1. use the PHP version 5.6 (this one is the fastest, so if you have an ability to update to 5.6 do it. PHP 5.6 increases the performance)
2. use OPcache (it caches the compiled PHP code into the memory. it will be used automatically if it is installed and enabled)
3. i
nstall mod_deflate on your server (this is the apache mod that compresses the html/css/js files during data transmission)
4. install Imagick - this is PHP library, similar to GD, which resizes images (Imagick will compress resized images)
if you have installed imagick, replace 'gd' with 'imagick' in config.local.php

'image_resize_lib' => 'imagick'
5. use APCu for cache, and redis for sessions. The config.local.php file should have the following lines:
   $config['cache_backend'] = 'apc';
   $config['session_backend'] = 'redis';

Hope this will help. Please share other tricks here if you have any.

P.S. We use Apache as a web-server.


hello imac,

acording to :

https://developers.g...mo.cs-cart.com/

there are 6 rules setted up for the demo page of cs cart.

Can You please copy us the config info settings here ?

Thank you in advance.

 
  • imac
  • Head of Product
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2074 posts

Posted 18 May 2015 - 08:21 AM #68

hello imac,

acording to :

https://developers.g....cs-cart.com%2F

there are 6 rules setted up for the demo page of cs cart.

Can You please copy us the config info settings here ?

Thank you in advance.


demeldoo, what do you mean under "config info settings"? config.local.php or something else?
Ilya Makarov,
CS-Cart Architect Team
Suggest and vote for new features | Report a bug

 
  • mokeshop
  • Senior Member
  • Members
  • Join Date: 27-Jul 12
  • 1009 posts

Posted 18 May 2015 - 08:47 AM #69

demeldoo, what do you mean under "config info settings"? config.local.php or something else?


yes i belive the setting are the in config.local

regards

imagick.... crfs... gzip

 
  • imac
  • Head of Product
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2074 posts

Posted 18 May 2015 - 09:42 AM #70

yes i belive the setting are the in config.local

regards

imagick.... crfs... gzip


Here you go:
// Tweaks
$config['tweaks'] = array (
    // Whether to remove any javascript code from description and name of product, category, etc.
    // Auto - false for ULT, true for MVE.
    'sanitize_user_html' => 'auto',
    'anti_csrf' => true, // protect forms from CSRF attacks
    'disable_block_cache' => false, // used to disable block cache
    'disable_localizations' => true, // Disable Localizations functionality
    'disable_dhtml' => false, // Disable Ajax-based pagination and Ajax-based "Add to cart" button
    'dev_js' => false, // set to true to disable js files compilation
    'redirect_to_cart' => false, // Redirect customer to the cart contents page. Used with the "disable_dhtml" setting.
    'api_https_only' => false, // Allows the use the API functionality only by the HTTPS protocol
    'api_allow_customer' => false, // Allow open API for unauthorized customers
    'lazy_thumbnails' => false, // generate image thumbnails on the fly
    'image_resize_lib' => 'imagick', // library to resize images - gd or imagick,
    'products_found_rows_no_cache_limit' => 100, // Max count of SQL found rows without saving to cache
);
// Key for sensitive data encryption
$config['crypt_key'] = 'YOURVERYSECRETCEY';
// Cache backend
// Available backends: file, sqlite, database, redis, xcache, apc
// To use sqlite cache the "sqlite3" PHP module should be installed
// To use xcache cache the "xcache" PHP module should be installed
// To use apc cache the "apc" PHP module should be installed
$config['cache_backend'] = 'apc';
$config['cache_redis_server'] = 'localhost';
$config['cache_redis_global_ttl'] = 0; // set this if your cache size reaches Redis server memory size
// Storage backend for sessions. Available backends: database, redis
$config['session_backend'] = 'redis';
$config['session_redis_server'] = 'localhost';
$config['cache_apc_global_ttl'] = 0;
$config['cache_xcache_global_ttl'] = 0;

Ilya Makarov,
CS-Cart Architect Team
Suggest and vote for new features | Report a bug

 
  • mokeshop
  • Senior Member
  • Members
  • Join Date: 27-Jul 12
  • 1009 posts

Posted 18 May 2015 - 09:50 AM #71

thank you.
lp

 
  • amdowney
  • Senior Member
  • Members
  • Join Date: 22-Oct 14
  • 254 posts

Posted 19 May 2015 - 08:51 AM #72

I just changed the backends to apc and redis and now the main homepage banner doesn't load?

Still struggling to get green ticks in google (slow server response). although in the beta I'm sure we did get green ticks. Is it down to my VPS:
4x Xeon Cores CPU 5GB DDR3 RAM 80GB HDD 1600GB Bandwidth Free Migrations
Stores: CCTV Kits & www.jmtb.co.uk

 
  • kickoff3pm
  • Senior Member
  • Members
  • Join Date: 18-Aug 10
  • 682 posts

Posted 19 May 2015 - 10:08 AM #73

First byte ? have you looked at the waterfall view to see if the is anything there that gives a clue. Also do a speed test on your DNS as could be a routing problem that just shows up as first byte. Apart from that what is the one thing that does not change when you change the configuration ? perhaps you have a script that's busy too busy or an external file that loading like google or facebook shares etc.
http://matchdaymemories.com - Football Memorabilia Via Cs-Cart V3
http://www.outadwords.com - Free Marketing For You Site.
http://www.alternativestoebay.com - Join The Free Ecommerce Community.

 
  • tamluchan
  • Newbie
  • Trial users
  • Join Date: 27-Mar 15
  • 14 posts

Posted 26 May 2015 - 02:09 AM #74

When I check speed with google, I only get 90 score (just install cs-cart demo).
My boss ask me to have to get 95 score like cs-cart demo.

I see that in Optimize images, I have more images which are not be compressed than cs-cart demo. I'm using Imagick 6.5.4 on CentOS 6.6. Which version of Imagick are you using?

 
  • tamluchan
  • Newbie
  • Trial users
  • Join Date: 27-Mar 15
  • 14 posts

Posted 26 May 2015 - 02:23 AM #75

The Google page speed of my cs-cart demo page.
Posted Image

And one more thing. I wonder why "Eliminate render-blocking JavaScript and CSS in above-the-fold content" in Mobile version is in Should Fix, not Consider Fixing (like cs-cart demo page)
Posted Image

 

Posted 31 May 2015 - 10:14 PM #76

We are getting the same issue. Is it the same element for everyone..

https://www.mysite.com/dev/var/cache/misc/statics/design/themes/responsive/css/standalone.65bfe121c7ca7de4b63da7a7c083d5321433109600.css?t=1433109963

Eliminate render-blocking JavaScript and CSS in above-the-fold content


Your page has 1 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
Optimize CSS Delivery of the following:

Posted Image
GTmetrix
94 / 88

Elkhorn Graphics LLC
Cs-Cart 4.7.1  SP3


 

Posted 31 May 2015 - 11:56 PM #77

Another problem we are experiencing is with redis enabled we get random white pages... If you refresh the page a few times then it will load... With it returned back to database is works fine...

Any ideas..???

Elkhorn Graphics LLC
Cs-Cart 4.7.1  SP3


 
  • kogi
  • Senior Member
  • Members
  • Join Date: 16-Aug 07
  • 620 posts

Posted 01 June 2015 - 12:05 AM #78

Any ideas..???


Check your server logs?
find / -type f -name '*.base' -exec chown kogi.kogi {} \;

 

Posted 01 June 2015 - 12:51 AM #79

Check your server logs?


Here are the errors in the log..

PHP Fatal error:  Class 'Redis' not found in /*****/***/public_html/dev/app/Tygh/Backend/Session/Redis.php on line 200
PHP Notice:  Undefined offset: 6 in /*****/***/public_html/dev/app/functions/fn.ultimate.php on line 1134
PHP Notice:  unserialize(): Error at offset 0 of 344 bytes in /*****/***/public_html/dev/app/functions/fn.cart.php on line 1871

Elkhorn Graphics LLC
Cs-Cart 4.7.1  SP3


 

Posted 01 June 2015 - 03:52 PM #80

Here are the errors in the log..

PHP Fatal error:  Class 'Redis' not found in /*****/***/public_html/dev/app/Tygh/Backend/Session/Redis.php on line 200
PHP Notice:  Undefined offset: 6 in /*****/***/public_html/dev/app/functions/fn.ultimate.php on line 1134
PHP Notice:  unserialize(): Error at offset 0 of 344 bytes in /*****/***/public_html/dev/app/functions/fn.cart.php on line 1871


All errors have been resolved....

We are finding that using redis is actually slower than database for $config['session_backend'] =
Actually 1 second slower on page load times...

Elkhorn Graphics LLC
Cs-Cart 4.7.1  SP3