wordpress使用memcached

Memcached 是一种高性能的分布式内存对象缓存系统。在动态应用,Memcached 既能提高访问的速度,同时还减低了数据库的负载。

如果空间支持memcached,可以安装插件让wordpress支持memcached(当然vps或独立主机可以自己安装memcached)。

首先后台直接搜索memcached,找到 Memcached Object Cache 这个插件,安装。然后看插件的readme.txt:

Contributors: ryan, sivel
Tags: cache, memcached
Requires at least: 3.0
Tested up to: 3.5
Stable tag: 2.0.2

Use memcached and the PECL memcache extension to provide a backing store for the WordPress object cache.

== Description ==
Memcached Object Cache provides a persistent backend for the WordPress object cache. A memcached server and the PECL memcache extension are required.

== Installation ==
1. Install [memcached](http://danga.com/memcached) on at least one server. Note the connection info. The default is 127.0.0.1:11211.

1. Install the [PECL memcache extension](http://pecl.php.net/package/memcache)

1. Copy object-cache.php to wp-content

这个插件和普通插件有点不一样,Drop-in高级插件,需要将插件文件放在wp-content目录下。安装完成之后,后台显示为:

wordpress memcached插件

7 thoughts on “wordpress使用memcached

回复 annhe_net 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注