2

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>
  • 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
1

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.

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