Elxis CMS Forum

Support => Technical support => Topic started by: timalsina on September 03, 2014, 06:55:46

Title: Memcached how to
Post by: timalsina on September 03, 2014, 06:55:46
The cloud hosting platform we've chosen offers Memcached for db cache. Is there an easy way to configure it for Elxis and IOSR Reservations/Hotels site?

Thanks.
Title: Re: Memcached how to
Post by: webgift on September 03, 2014, 16:00:16
I suggest you to use APC instead of Memcache. As for performance ... APC will be faster because:
-  APC can act as both an opcode and object cache. Memcache is just an object cache.
-  APC is an in-process, single-host cache. While memcache is a separate process for distributed hosts, so adds some TCP latency even when it's running locally.

If you have many servers or want to put your object cache on a separate VPS, then memcache will work. But if you have the memory to keep everything on a single server stick with APC.

Here are some benchmarks:
1. http://www.mysqlperformanceblog.com/2006/08/09/cache-performance-comparison/ (http://www.mysqlperformanceblog.com/2006/08/09/cache-performance-comparison/)
2. http://stackoverflow.com/questions/1794342/memcache-vs-apc-for-a-single-server-site-data-caching (http://stackoverflow.com/questions/1794342/memcache-vs-apc-for-a-single-server-site-data-caching)

Use the performance features as provided by Elxis Core and you'll see the difference. There is no need to enable whatever is provided by your hosting provider.
Title: Re: Memcached how to
Post by: timalsina on September 03, 2014, 19:26:20
@webgift
Sounds good. Will explore into it in the future when MySql DB Query Performance becomes a bottleneck.

Thank you.