magento memcache缓存配置
在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>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。