Jump to content

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

Site Optimization Problems Rate Topic   - - - - -

 
  • rrrolfs
  • Member
  • Members
  • Join Date: 17-Dec 11
  • 15 posts

Posted 18 February 2012 - 09:31 PM #1

I am running Multi-Vendor version 2.2.4 and noticed that the cart seems sluggish and slow. I installed siteoptimizer and that seem to improve my load speeds on most pages. I am still noticing that some pages are still sluggish. I think that the shipping calculator is making these pages sluggish!

Here are my problems:
1. I am still have a really slow load time when the customer click on "view cart". I think this is related to the shipping estimator script. The load time on this page improves when I disable the shipping calculator on this page. Does anyone know how to fix this?

2. The shipping estimator itself is really slow when calculating realtime shipping rates. I know that there is a documented problem about this. I tried to fix the problem using the solution that was posted on the forum. This did not work in my case. Does anyone know how to fix this?

3. I was looking at the local.config.php file and noticed the following parameters:

// Tweaks
$config['tweaks'] = array (
'js_compression' => false, // enables compession to reduce size of javascript files
'check_templates' => true, // 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' => false, // used to disable block cache
'join_css' => false, // is used to unite css files into one file
'allow_php_in_templates' => false, // Allow to use {php} tags in templates


What do these parameters do? Do you recommend changing them?


4. I also noticed that you can change the backend cache parameter in the local.config.php file. Since I have a dedicated server I can change this parameter to what ever I want and make it work. Here is the parameter that I am talking about:

// Cache backend
// Available backends: file, sqlite, mysql, shmem
// To use sqlite cache the "sqlite3" PHP module should be installed
// To use shmem cache the "shmop" PHP module should be installed
$config['cache_backend'] = 'file';


Does anyone have any recommendations on what to change this parameter to? I know that CS-Cart says to change it for better optimization. I just want to know if sqlite3 is better than mysql or shmop?



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

Posted 19 February 2012 - 06:21 AM #2

There was a bug (actually disabling multi-threading) in the realtime shipping. Contact the helpdesk and they should provide you the fix. Or search the forums for the answer (don't remember off the top of my head other than to remove a 'false' from an if statement).

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.


 
  • rrrolfs
  • Member
  • Members
  • Join Date: 17-Dec 11
  • 15 posts

Posted 21 February 2012 - 06:38 AM #3

Here is what CS-Cart's support staff had to say about the local.config.php parameters:

Description of the settings:
1. js_compression - if this directive is enabled, the whole CS-Cart Javascript code is packed and stored in the var/cache directory of your CS-Cart installation.
2. check_templates - if this directive is enabled, the templater will check templates for syntax errors.
3. inline_compilation - if the following setting is enabled, a parser looks for template {include} tags and joins them in one file which is stored in the var/compiled directory of your CS-Cart installation.
4. anti_csrf - if this setting is enabled, Cross-site request forgery attacks can be prevented. To learn more about them, please check the following article:

http://en.wikipedia....request_forgery

5. disable_block_cache - if this setting is enabled, block content will not be cached, this may affect the site performance.
6. join_css - if the following setting is enabled, all CS-Cart CSS files will be joined and stored in the var/cache directory of your CS-Cart installation.
7. allow_php_in_templates - if this setting is enabled, PHP directives can be processed in template files, this may also affect the site preformance.

CS-Cart's recommended settings:
// Tweaks
$config['tweaks'] = array (
'js_compression' => true, // enables compession to reduce size of javascript files
'check_templates' => true, // 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' => false, // 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

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

Posted 10 April 2012 - 07:02 PM #4

I'm confused.

2. check_templates - if this directive is enabled, the templater will check templates for syntax errors.
'check_templates' => true, // disables templates checking to improve template engine speed

So... in order to NOT check the templates, should it be put on false or true!?

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


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

Posted 06 June 2012 - 02:45 PM #5

I'm confused.

2. check_templates - if this directive is enabled, the templater will check templates for syntax errors.
'check_templates' => true, // disables templates checking to improve template engine speed

So... in order to NOT check the templates, should it be put on false or true!?


Anyone? I'm guessing "true" does not check templates ?

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


 
  • cscartrocks
  • Member
  • Members
  • Join Date: 24-Jan 11
  • 1816 posts

Posted 06 June 2012 - 02:49 PM #6

Anyone? I'm guessing "true" does not check templates ?

Put it to "false"

check_templates? true = Yes and false = No

One Step Checkout Addon - The ultimate checkout experience
Best CS-Cart SEO addon - CS-Cart SEO Ultimate Addon
PM for 365-day support and custom development service


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

Posted 06 June 2012 - 07:39 PM #7

Put it to "false"

check_templates? true = Yes and false = No


Are you sure about that? Because it also says:

true, // disables templates checking to improve template engine speed
So it could be either one!

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


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

Posted 06 June 2012 - 09:56 PM #8

I'd leave it checking templates. After the template is cached it's irrelevant. So it's a one-time hit. Benefits exceed the costs.

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.