Any Advantage If Host Has Apc/memcache?

Hi,

Are there any advantage if we move to a host with the following (with cs-cart out of the box)?

PHP Cache: APC / eAccelerator / XCache

Memory Cache: Memcached / Memcache



Thanks

APC e accelerator crashed my dev site v4, CS said turn it off, no need to use it, not supported



John

We tested on our test server the newest CS-Cart with many possible configurations (php handlers with or without accelerators) without a significant speed improvements.

Thanks all for the helpful feedback!

Uhm, I disagree with Martfox. Memcache really does help. I had some help getting the caching set up on some sites and it makes a big difference. It really helps on the initial load, but where I see the biggest difference is when you go from page to page. Basically the sites it is installed and working on go between pages immediately with almost no delay. Like, you can think about what you are looking at between pages kind of delay.



I don't know if just having MemCache installed on a server will do this, but when configured correctly, it makes a big difference.



Thanks,



Brandon

[quote name='brandonvd' timestamp='1394296294' post='178983']

Uhm, I disagree with Martfox. Memcache really does help. I had some help getting the caching set up on some sites and it makes a big difference. It really helps on the initial load, but where I see the biggest difference is when you go from page to page. Basically the sites it is installed and working on go between pages immediately with almost no delay. Like, you can think about what you are looking at between pages kind of delay.



I don't know if just having MemCache installed on a server will do this, but when configured correctly, it makes a big difference.



Thanks,



Brandon

[/quote]



Hello, could you assist me on getting Memcache configured on my site?

Thanks Brandon

[quote name='brandonvd' timestamp='1394296294' post='178983']

Uhm, I disagree with Martfox. Memcache really does help. I had some help getting the caching set up on some sites and it makes a big difference. It really helps on the initial load, but where I see the biggest difference is when you go from page to page. Basically the sites it is installed and working on go between pages immediately with almost no delay. Like, you can think about what you are looking at between pages kind of delay.



I don't know if just having MemCache installed on a server will do this, but when configured correctly, it makes a big difference.



Thanks,



Brandon

[/quote]

Hi,



yes, you are right, memcache makes a difference, but the the accelerators like APC / eAccelerator / XCache don't.



John

Use best [font=sans-serif][size=3]Page Cache Method for your installation. Make stress tests with online and server tools. Don't forget about SSD-hosting or CDN-option. Good luck![/size][/font]

[quote name='forfun' timestamp='1395252696' post='179624']

Use best [font=sans-serif][size=3]Page Cache Method for your installation. Make stress tests with online and server tools. Don't forget about SSD-hosting or CDN-option. Good luck![/size][/font]

[/quote]



Hi,



which [font=sans-serif][size=3]Page Cache Method [/size][/font]is the “best” for CS-Cart?



SSD “hosting” is (SSD drives used by the server) the best choice at the moment, but “managed”… For a usual ecommerce customer without a knowledge about Linux / Windows server configuration is a unmanaged SSD hosting useless.



John

Hi,

Is there any documentation how can I [color=#282828][font=arial, verdana, tahoma, sans-serif]configure [/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif]Memcache on my CS cart.[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]Regards![/font][/color]

[quote name='kiro789' timestamp='1401714202' post='184857']

Hi,

Is there any documentation how can I [color=#282828][font=arial, verdana, tahoma, sans-serif]configure [/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif]Memcache on my CS cart.[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]Regards![/font][/color]

[/quote]



Installation of Memcache requires good knowledge in server configurations and php. There are much topics on this forum relating this subject and you could try read it and install Memcashe yourself, but you must be sure in your powers to perform this job. Also, you will need rewrite some CS-Cart functions which get data.

[quote name=‘kiro789’ timestamp=‘1401714202’ post=‘184857’]

Hi,

Is there any documentation how can I [color=#282828][font=arial, verdana, tahoma, sans-serif]configure [/font][/color][color=#282828][font=arial, verdana, tahoma, sans-serif]Memcache on my CS cart.[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]Regards![/font][/color]

[/quote]



Please check this thread

Please check this thread

http://forum.cs-cart.com/topic/13133-memcached

Hi eCom Labs

I am reading this particular thread but on part of how to implement it in CS Cart I am lost.

8. Go to php code of site.

find file core/class.session.php
there find function set_params()

and there rows like:
ini_set('session.cookie_path', ((!empty($current_path))? $current_path : '/'));
ini_set('session.gc_divisor', 10); // probability is 10% that garbage collector starts
add after it:
ini_set('session.save_handler','memcache');
ini_set('session.save_path','127.0.0.1:11211');
after it sfind function init()

there comment Session::set_handlers(); must look like

Session::set_params();
//Session::set_handlers();
Session::start();

At step 8 of the process there is talk about

find file core/class.session.php

Now where can that be found in CS Cart V4.6.2 ??

I can find under directory : public_html/app/Tygh/Backend/Cache eight different cache type files but none of them are memcache related as sofar this laymen knows of.

find file core/class.session.php

Go to:
app/Tygh/Web/Session.php line 393

Go to:
app/Tygh/Web/Session.php line 393

Thanks

I have amended the code and it looks like this:

 protected function setSessionParams()
    {
        ini_set('session.cookie_lifetime', $this->cookie_lifetime);
        ini_set('session.cookie_domain', $this->cookie_domain);
        ini_set('session.cookie_path', $this->cookie_path);
        ini_set('session.gc_probability', $this->gc_probability);
        ini_set('session.gc_divisor', $this->gc_divisor);
    /** custom added **/
        ini_set('session.save_handler','memcache');
        ini_set('session.save_path','127.0.0.1:11211');
    session_cache_limiter($this->cache_limiter);
    session_cache_expire($this->cache_expire);

    session_set_cookie_params(
        $this->cookie_lifetime,
        $this->cookie_path,
        $this->cookie_domain,
        $this->cookie_secure,
        $this->cookie_httponly
    );
}

The only thing that baffles me is what is meant by this written by Offline and where to put it

after it sfind function init()

there comment Session::set_handlers(); must look like

Session::set_params();
//Session::set_handlers();
Session::start();

We find that most people trying to use Memcache/APC for a performance boost BARELY have enough memory to dedicate properly to make it work.

Cache does improve performance across scale. We have clients with CS-Cart stores doing 12mil+ and at time multiple transactions a second...(when their infomercials run).

They are not.. however .. running their cache systems on tiny VPS, etc.

We find that most people trying to use Memcache/APC for a performance boost BARELY have enough memory to dedicate properly to make it work.

Cache does improve performance across scale. We have clients with CS-Cart stores doing 12mil+ and at time multiple transactions a second...(when their infomercials run).

They are not.. however .. running their cache systems on tiny VPS, etc.

What are IYHO tiny VPS and moreover what did files did you have to amend in their CS Cart stores ? Care to share the knowledge here with us ?

PS I have 10 Gigs assigned to this particular Cpanel VPS

I would also not recommend Memcachd, as stated above, the performance isnt worth it. The max block it stores is like 1mb so its not really efficient (larger/theme objects may bypass it). Redis is a much better choice if you are using memory to cache, and it just works, without hacking around, and it can be more persistent in case of failure.

Additionally, APC is depreciated so i would not use that either (nor xcache). If you use PHP7, use the built in opcache. The performance wont really be noticeable unless its a really heavy page load being requested multiple times (such as a popular filter), but it will help shave response time for the rest, and bump SEO a sliver (pagespeed).