Magento – implementing xcache to speed up magento

cachemagento-1.7

I'm using Magento ver. 1.7.0.2 on a 64-bit Centos box with litespeed web server. Recently I re-compiled easyapache to include xcache for the purpose of increasing site speed. However now I'm not sure if there's something "additional" I need to do within magento config file (local.xml) as googling for answers is some what unclear. Many users report "add memcache" while some say "add memcache or APC" and then provide config local.xml config settings for APC. So, I'd like to know if enabiling xcache via easyapache is all that is needed to benefit magento's speed, or if I need to also edit the config file?

For example, do I add something like the following?

<cache>
    <backend>xcache</backend>
    <prefix>MAGE_</prefix>
</cache>

***Edit: adding my COMPLETE local.xml file below … please let me know what to edit exactly. The "X's" represent sensitive data that I have commented out.

<config>
  <global>
    <install>
      <date><![CDATA[XXX, XX XXX XXXX XX:XX:XX +0000]]></date>
    </install>
    <crypt>
      <key><![CDATA[XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]]></key>
    </crypt>
    <disable_local_modules>false</disable_local_modules>
    <resources>
      <db>
        <table_prefix><![CDATA[]]></table_prefix>
      </db>
      <default_setup>
        <connection>
          <host><![CDATA[localhost]]></host>
          <username><![CDATA[XXX_XXX]]></username>
          <password><![CDATA[XXXXXXXXXXXXXXX]]></password>
          <dbname><![CDATA[XXX_XXX]]></dbname>
          <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
          <model><![CDATA[mysql4]]></model>
          <type><![CDATA[pdo_mysql]]></type>
          <pdoType><![CDATA[]]></pdoType>
          <active>1</active>
        </connection>
      </default_setup>
    </resources>
    <session_save><![CDATA[files]]></session_save>      
  </global>
  <admin>
    <routers>
      <adminhtml>
        <args>
          <frontName><![CDATA[XXXXXXXXXXXX]]></frontName>
        </args>
      </adminhtml>
    </routers>
  </admin>
</config>

Best Answer

The best thing to do is look at the app/etc/local.xml.additional file which is a reference file that ships with the codebase. Of particular interest in your case:

<global>
    <!-- ... -->
    <cache>
        <backend></backend><!-- apc / memcached / xcache / empty=file -->
        <!-- ... -->
    </cache>
    <!-- ... -->
</global>

Which lets you know that there is an xcache cache backend available.

Related Topic