In App/etc/local.xml
Add the cache segment configuration in the <global> configuration section
[HTML]View Plaincopy
- <config>
- <global>
- <install>
- <date><![ Cdata[fri, 08:07:23 +0000]]></date>
- </Install>
- <crypt>
- <key><![ cdata[d2bd1ffb7680cb1d9afec20332073f1f]]></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[61pad]]></username>
- <password><![ cdata[123456]]></password>
- <dbname><![ cdata[magento17]]></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>
- <cache><!--caching configuration --
- <backend>memcached</backend>
- <memcached>
- <servers>
- <server>
- <host><![ Cdata[localhost]]></host>
- <port><![ cdata[11211]]></port>
- <persistent><![ cdata[0]]></Persistent>
- </Server>
- </Servers>
- <compression><![ cdata[0]]></compression>
- <cache_dir><![ cdata[]]></cache_dir>
- <hashed_directory_level><![ cdata[]]></hashed_directory_level>
- <hashed_directory_umask><![ cdata[]]></hashed_directory_umask>
- <file_name_prefix><![ cdata[]]></file_name_prefix>
- </memcached>
- </Cache>
- </Global>
- <admin>
- <routers>
- <adminhtml>
- <args>
- <frontname><![ cdata[admin]]></frontname>
- </args>
- </adminhtml>
- </Routers>
- </admin>
- </config>
Magento memcache Cache Configuration