Configure Magento with Memcached unix socket Print

  • 0

1) Enable Memcached server from cPanel, for more information, please refer to the following article

2) Login to your cPanel

3) Open File Manager and go to Magento directory

4) Edit file app/etc/local.xml and add memcached as cache backend:

<global>
 ...
    <cache>
      <backend>memcached</backend>
      <slow_backend>database</slow_backend>
      <fast_backend>Memcached</fast_backend>
      <fast_backend_options>
        <servers>
          <server>
            <host>unix:///home/YourUsername/memcached.sock</host>
            <port>0</port>
            <persistent>0</persistent>
          </server>
        </servers>
      </fast_backend_options>

      <memcached>
        <servers>
          <server>
            <host>unix:///home/YourUsername/memcached.sock</host>
            <port>0</port>
            <persistent>0</persistent>
          </server>
        </servers>
      </memcached>
    </cache>
 ...
</global>


Was this answer helpful?

« Back