Jump to content

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

Any Advantage If Host Has Apc/memcache? Rate Topic   - - - - -

 
  • buging
  • Member
  • Members
  • Join Date: 12-Jan 11
  • 332 posts

Posted 03 March 2014 - 12:44 PM #1

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

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

Posted 03 March 2014 - 01:58 PM #2

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

John

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


 
  • martfox
  • Member
  • Authorized Reseller
  • Join Date: 15-Jan 10
  • 552 posts

Posted 05 March 2014 - 07:11 AM #3

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.

CS-Cart with 1 Year FREE Web Hosting | CS-Cart optimized SSD Cloud VPS Servers from €10.00/month
.
VPS SSD Cloud from €10.00 *** Dedicated Servers *** CS-Cart Authorized Reseller and Web Hosting Provider


 
  • buging
  • Member
  • Members
  • Join Date: 12-Jan 11
  • 332 posts

Posted 05 March 2014 - 07:42 PM #4

Thanks all for the helpful feedback!

 
  • brandonvd
  • is Super Awesome
  • Members
  • Join Date: 19-Dec 06
  • 2629 posts

Posted 08 March 2014 - 04:31 PM #5

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

 
  • websmart
  • Junior Member
  • Members
  • Join Date: 11-Feb 10
  • 74 posts

Posted 19 March 2014 - 05:19 PM #6

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


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

 
  • martfox
  • Member
  • Authorized Reseller
  • Join Date: 15-Jan 10
  • 552 posts

Posted 19 March 2014 - 05:48 PM #7

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

Hi,

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

John

CS-Cart with 1 Year FREE Web Hosting | CS-Cart optimized SSD Cloud VPS Servers from €10.00/month
.
VPS SSD Cloud from €10.00 *** Dedicated Servers *** CS-Cart Authorized Reseller and Web Hosting Provider


 
  • forfun
  • Junior Member
  • Members
  • Join Date: 22-Feb 11
  • 109 posts

Posted 19 March 2014 - 06:11 PM #8

Use best 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!
Hosted at DigitalOcean | 2.2.4 Pro Version & 4.1.3 | Айхор Хостинг

 
  • martfox
  • Member
  • Authorized Reseller
  • Join Date: 15-Jan 10
  • 552 posts

Posted 19 March 2014 - 11:06 PM #9

Use best 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!


Hi,

which Page Cache Method 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

CS-Cart with 1 Year FREE Web Hosting | CS-Cart optimized SSD Cloud VPS Servers from €10.00/month
.
VPS SSD Cloud from €10.00 *** Dedicated Servers *** CS-Cart Authorized Reseller and Web Hosting Provider


 
  • kiro789
  • Advanced Member
  • Members
  • Join Date: 12-May 14
  • 63 posts

Posted 02 June 2014 - 01:03 PM #10

Hi,
Is there any documentation how can I configure Memcache on my CS cart.
Regards!

 
  • Cart-Power
  • Senior Member
  • Authorized Reseller
  • Join Date: 12-May 14
  • 1549 posts

Posted 18 August 2014 - 09:23 AM #11

Hi,
Is there any documentation how can I configure Memcache on my CS cart.
Regards!


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.
Cart-Power.com / Cart-Power.ru (sales@cart-power.com) offers you:
CS-Cart add-ons :: CS-Cart themes :: CS-Cart development :: CS-Cart license
Работаем с англоязычными и русскоязычными клиентами (work with English-speaking and Russian-speaking customers)

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17997 posts

Posted 19 August 2014 - 11:48 AM #12

Hi,
Is there any documentation how can I configure Memcache on my CS cart.
Regards!


Please check this thread

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

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Mongoose
  • Senior Member
  • Members
  • Join Date: 08-Mar 13
  • 961 posts

Posted 18 October 2017 - 09:29 AM #13

Please check this thread

http://forum.cs-cart...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.

 


CS Cart Evangelist - running CS Cart 4.7.4 in three domains


 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 421 posts

Posted 18 October 2017 - 11:43 AM #14

find file core/class.session.php

 

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

PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).

 
  • Mongoose
  • Senior Member
  • Members
  • Join Date: 08-Mar 13
  • 961 posts

Posted 18 October 2017 - 12:05 PM #15

 

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();

CS Cart Evangelist - running CS Cart 4.7.4 in three domains


 
  • FDGWEB
  • Junior Member
  • Authorized Reseller
  • Join Date: 20-Aug 10
  • 125 posts

Posted 18 October 2017 - 10:13 PM #16

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.


FDG Web, Inc - Seattle Web Design : Custom CS-Cart Programming & Design | Toll-Free: 877.239.3083

Download Proposal Templates & Web Design Contract Samples

 
  • Mongoose
  • Senior Member
  • Members
  • Join Date: 08-Mar 13
  • 961 posts

Posted 19 October 2017 - 10:07 PM #17

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

 


CS Cart Evangelist - running CS Cart 4.7.4 in three domains


 
  • dhaupin
  • Member
  • Members
  • Join Date: 07-Apr 16
  • 19 posts

Posted 22 October 2017 - 12:20 AM #18

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).


https://creadev.org | support@creadev.org - CS-Cart Addons, Integrations, & Development. Made in the USA.