I'm using Magento ver. 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?


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

      <date><![CDATA[XXX, XX XXX XXXX XX:XX:XX +0000]]></date>
          <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
  • Would be great if you can add the final solution if you had any. – rhand Sep 11 '15 at 13:51
  • OPT cache will help better than varnish cache. – robin Aug 16 '16 at 22:59

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:

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

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

  • If possible please expand your answer because simply putting "xcache" between <backend></backend> will break the site. Also, your answer is a simple copy/paste from google which i've seen several times ... doesn't explain how to truly implement xcache. – riskywebmaster Jun 4 '13 at 22:55
  • 1
    1) I didn't use Google. I read the code. Additionally, I linked you to hosted source and pointed out the mapping of config to cache model backend so that you can help yourself. 2) I answered the question you asked: "...or if I need to also edit the config file?" Want a more specific answer, ask a more specific question. – benmarks Jun 5 '13 at 13:49
  • 1
    How would my local.xml be edited because implementing the above referenced code will cause the site to throw all types of errors. – riskywebmaster Jun 5 '13 at 15:10
  • See properhost.com/support/kb/31/How-to-enable-XCache-in-Magento with some more details, also on errors encountered. But even with that implementation I still had errors like fast_backend must implement the Zend_Cache_Backend_ExtendedInterface interface – rhand Sep 11 '15 at 15:06
  • Also found Zend issue on this opened here framework.zend.com/issues/browse/ZF-9150 : Xcache can't be used as fast cache backend with Zend_Cache_Backend_TwoLevels Fast_backend must implement the Zend_Cache_Backend_ExtendedInterface interface error appears. Need implement Zend_Cache_Backend_ExtendedInterface – rhand Sep 12 '15 at 3:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.