在app/etc/local.xml
<global>配置段中添加 cache段配置
- <config>
- <global>
- <install>
- <date><![CDATA[Fri, 25 May 2012 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><!--缓存配置-->
- <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>