Can I use memcached and xcache on a same VPS?

coredump

Member
Registered
Joined
Jun 20, 2016
Messages
32
Points
0
What is the difference between memcached and xcache and I can install both caching solutions on a same VPS?

Please share your advice?
 

RDO Servers

Well-known member
Registered
Joined
Apr 3, 2015
Messages
1,027
Points
83
You can.... IF you have enough RAM to make it useful.

Caching systems store your content in RAM. It's not a magical system that makes servers faster without resources.
 

coredump

Member
Registered
Joined
Jun 20, 2016
Messages
32
Points
0
You can.... IF you have enough RAM to make it useful.

Caching systems store your content in RAM. It's not a magical system that makes servers faster without resources.
How much RAM do I need for these cache solutions?

I heard that when data stores in RAM, it can boost the loading faster without requiring the process of CPUs.

@coredump As RDO mentioned as long as you have enough RAM that is very possible.
Note:
never use max of your RAM as it could cause issues, so if you currently just have about enough RAM for it, make sure you upgrade before hand.

Kind regards
In the case, I don't need to install xcache, can I install and configurating memcached formulti sites?
 

Luxin Host

Well-known member
Registered
Joined
Jun 26, 2016
Messages
543
Points
43
@coredump
May I ask which Operating system you are using so I can point you to a tutorial.
If the tutorial is confusing or you face any issues ill be here to help
 

coredump

Member
Registered
Joined
Jun 20, 2016
Messages
32
Points
0
coredump
I use centos 6 on a vps. I want to install memcached on it and activate it for all sites on the vps.

I heard more about it, a good cache solution for storing data into ram.
 

Luxin Host

Well-known member
Registered
Joined
Jun 26, 2016
Messages
543
Points
43
@coredump

I havnt personally used memcached more than 2 times however heard great things from employees and friends so i do recommend giving it a try as you are doing.

I went through a few articles and found the one below to be the most clear with the most proper configuration. of course i do not recommend just following the tutorial, also try to learn what everything does as it will help you a great deal later on.

http://www.tecmint.com/install-memcached-caching-server-on-rhel-centos-fedora/

Also have you considered all of your options? As memcached is very popular due to good db capabilities and is heavily used for db. if you do not use a lot of DB then you may want to go back to the drawing board.
 

MooseLucifer

Well-known member
Registered
Joined
May 20, 2016
Messages
149
Points
28
What is the difference between memcached and xcache and I can install both caching solutions on a same VPS?

Please share your advice?
In my personal opionion, they are two different caching solutiosn and having different types .

xcache is opcode cache and used by php engine while Memcache is a data cache. It will store data as a key value pair into RAM so you can use both on a server

In the case, I don't need to install xcache, can I install and configurate memcached for multi sites?
If your sites are having this code on your site

Code:
$config['Datastore']['prefix'] = '';
to use memcached on separated sites then adding a custom prefix to it like this

Code:
$config['Datastore']['prefix'] = 'site1';
Hope it helps!
 
Older Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top