LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   PHP (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=19)
-   -   Memcache + xCache (http://www.litespeedtech.com/support/forum/showthread.php?t=6287)

Jakobi 09-30-2012 07:54 PM

Memcache + xCache
 
Hello,

I have seen another post about this but wanted a little more information. I am trying to optimize as much as possible. Currently I have xCache installed, does installing Memcache offer anything?

I will be upgrading to the 2-CPU license in about a week so I can use the Litespeed Cache for my vBulletin and Wordpress sites.

I have 1 server, and a vBulletin site that gets a lot of traffic.

Is it worth having Memcache?

Thanks.

Yogesh Sarkar 10-01-2012 04:06 AM

If you are running suPHP (default mode on Litespeed), then xcache wouldn't work and you will need to use Memcache instead, along with eAccelerator in disk cache mode.

Jakobi 10-01-2012 02:26 PM

I do have xCache installed and appears to be working great. I guess I didn't know if there was any advantages to having Memcache installed as well. Do you happen to know if there are any performance gains by using something alongside something like xCache? Thanks!

NiteWave 10-01-2012 06:04 PM

Memcache and xCache are different, xcache is opcode cache and used by php engine. memcache is a kind of variable cache -- it's used and configurable by web app like vBulletin. so for quick answer: xcache will speed up php code execution, memcache can be used by vBulletin to store some variables for fast access. so both cache will speed up vBulletin. if no vBulletin core or module configure to use memcache, the memcache don't help at all.

Jakobi 10-01-2012 06:50 PM

Thank you. I think I will give it a try then. Right now I have this in my vBulletin config:

PHP Code:

    // ****** DATASTORE CACHE CONFIGURATION *****
    // Here you can configure different methods for caching datastore items.
    // vB_Datastore_Filecache  - to use includes/datastore/datastore_cache.php
    // vB_Datastore_APC - to use APC
    // vB_Datastore_XCache - to use XCache
    // vB_Datastore_Memcached - to use a Memcache server, more configuration below
$config['Datastore']['class'] = 'vB_Datastore_XCache '

Do you recommend based on your experience that this is better with Memcache? Or can I use them both here?

Also for my Wordpress W3 Total Cache I have the following all set to xCache:
  • Page Cache
  • Minify
  • Database Cache
  • Object Cache

In a week I am upgrading to a 2-CPU license to utilize LiteSpeed Cache on my VBSEO, vBulletin.

Do you recommend Memcache to be used with certain W3 Total Cache options?

Do I setup vBulletin to use just Memcache? Or can both be used? What do you recommend?

Thank you!

NiteWave 10-01-2012 08:41 PM

sorry, no actual experience on how to configure vBulletin regarding using memcache or xcache. you may have to decide yourself --- try one by one, and compare the performance.

Jakobi 10-01-2012 08:43 PM

Ok thanks, I will stick with xCache, but found this:

http://www.vbseo.com/f2/what-does-vb...30/#post302255


All times are GMT -7. The time now is 06:38 PM.