WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Memcached Object Cache

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

How can I manually specify the memcached server(s)?

Add something similar to the following to wp-config.php above /* That's all, stop editing! Happy blogging. */:

$memcached_servers = array(
    'default' => array(
        '10.10.10.20:11211',
        '10.10.10.30:11211'
    )
);

The top level array keys, are cache groups, where 'default' corresponds to any cache group that is not explicitly defined. This allows for specifying memcached servers that only handle certain cache groups. The most common use is only specifying 'default'.

Possible cache groups are:

{$taxonomy}_relationships
{$meta_type}_meta
{$taxonomy}_relationships
blog-details
blog-id-cache
blog-lookup
bookmark
calendar
category
comment
counts
general
global-posts
options
plugins
post_ancestors
post_meta
posts
rss
site-lookup
site-options
site-transient
terms
themes
timeinfo
transient
user_meta
useremail
userlogins
usermeta
users
userslugs
widget

Requires: 3.0 or higher
Compatible up to: 3.5.2
Last Updated: 2012-9-10
Downloads: 28,121

Ratings

4 stars
4.4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,3,0 100,1,1
40,5,2
0,1,0
0,3,0
0,5,0
100,1,1
27,11,3
0,1,0
60,5,3
100,1,1 25,4,1
0,1,0
100,2,2 100,1,1
33,3,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1