Title: Memcached Redux
Author: Scott Taylor
Published: <strong>2012 年 6 月 5 日</strong>
Last modified: 2020 年 5 月 7 日

---

搜索插件

![](https://ps.w.org/memcached-redux/assets/banner-772x250.jpg?rev=553561)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/memcached-redux_98a1ab.svg)

# Memcached Redux

 作者：[Scott Taylor](https://profiles.wordpress.org/wonderboymusic/)

[下载](https://downloads.wordpress.org/plugin/memcached-redux.0.1.7.zip)

 * [详情](https://cn.wordpress.org/plugins/memcached-redux/#description)
 * [评价](https://cn.wordpress.org/plugins/memcached-redux/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/memcached-redux/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/memcached-redux/#developers)

 [支持](https://wordpress.org/support/plugin/memcached-redux/)

## 描述

Changes the famous Memcached WP Object Cache backend to actually use the Memcached
class (not the Memcache class). Implements wp_cache_get_multi() and wp_cache_set_multi()

    ```
    wp_cache_get_multi( array(
        array( 'key', 'group' ),
        array( 'key', '' ),
        array( 'key', 'group' ),
        'key'
    ) );

    wp_cache_set_multi( array(
        array( 'key', 'data', 'group' ),
        array( 'key', 'data' )
    ) );
    ```

Blog Post: [http://scotty-t.com/2012/06/05/memcached-redux/](http://scotty-t.com/2012/06/05/memcached-redux/)

## 安装

 1. Install [memcached](http://danga.com/memcached) on at least one server. Note the
    connection info. The default is `127.0.0.1:11211`.
 2. Install the [PECL memcached extension](http://pecl.php.net/package/memcached)
 3. Copy object-cache.php to wp-content

## 评价

![](https://secure.gravatar.com/avatar/bd2c05f81f1618d45ad4b7fc4fff0edaac0baac78a4f4f62c6ca35c9b09536ab?
s=60&d=retro&r=g)

### 󠀁[Does its Job, fast – dangerous](https://wordpress.org/support/topic/does-its-job-fast-dangerous/)󠁿

 [kech61](https://profiles.wordpress.org/kech61/) 2020 年 6 月 19 日

Well, the plugin does its Job (cloud/centos7/apache/php/fpm/7.3 + memcached) fine.
However, my site is quite komplex (multilingual, bbpress, aso..). Yesterday I had
to make some changes (new pages) and the menu-system completely fell apart. It was
not possible to add menu items, the connect between language-versions fell appart–
horrible. Issue was finally solved by renaming the object_cache.php in wp_contend.
So: The performance is really fine, but admin have to know what they are doing and
disable plugin when changing (at least) menues.

![](https://secure.gravatar.com/avatar/ed4bec46dd1607b9fcf368c5cd0c97efcac300b27e788a8cd333ec1dc9b4bdf0?
s=60&d=retro&r=g)

### 󠀁[Simple but it works!](https://wordpress.org/support/topic/simple-but-it-works-9/)󠁿

 [Olaf Lederer](https://profiles.wordpress.org/finalwebsites/) 2019 年 2 月 20 日

Using the object cache plugin on my VPS from Upcloud managed with Serverpilot. Result?
Everything feels much faster Using now php7.2 and can’t wait that the memchached
extension becomes available for php7.3

![](https://secure.gravatar.com/avatar/379d68b64a221952bf9f8b74314858d41c42123f094f8f8cdcba191cc5ade8d5?
s=60&d=retro&r=g)

### 󠀁[Super!!!](https://wordpress.org/support/topic/super-1080/)󠁿

 [solgaz](https://profiles.wordpress.org/solgaz/) 2018 年 4 月 29 日

many thanks!

![](https://secure.gravatar.com/avatar/8b2bdc3b2373f8833c0ec860b7859bd66c9f492b4ca30473a194df286a670395?
s=60&d=retro&r=g)

### 󠀁[Works with PHP7](https://wordpress.org/support/topic/works-with-php7/)󠁿

 [ramanm](https://profiles.wordpress.org/ramanm/) 2018 年 1 月 10 日 1 回复

Works with PHP7 amd Amazon Elasticache memcached. [link removed] Thank you for making
this available.

![](https://secure.gravatar.com/avatar/603cca234b548c60f97319853a2c9e29b918aa330e0fdc73bb92fa79edb59431?
s=60&d=retro&r=g)

### 󠀁[Best Object Cache plugin](https://wordpress.org/support/topic/best-object-cache-plugin/)󠁿

 [Pothi Kalimuthu](https://profiles.wordpress.org/pothi/) 2016 年 9 月 3 日

Memcached PHP extension and memcached servers are widely supported by many hosts
these days (2016). So, this plugin just works with most hosts. Now, I can’t see 
any site without using this plugin for WP Object Cache!

![](https://secure.gravatar.com/avatar/9c1d3a0a896c7ebf2a5cc0c250737de06bfc91ea9c4a680990a57cf71825d3c6?
s=60&d=retro&r=g)

### 󠀁[Fatal error](https://wordpress.org/support/topic/fatal-error-2442/)󠁿

 [Den999](https://profiles.wordpress.org/den999/) 2017 年 2 月 7 日

Fatal error: Cannot redeclare wp_cache_add()

 [ 阅读所有9条评价 ](https://wordpress.org/support/plugin/memcached-redux/reviews/)

## 贡献者及开发者

「Memcached Redux」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Scott Taylor ](https://profiles.wordpress.org/wonderboymusic/)
 *   [ Ryan Boren ](https://profiles.wordpress.org/ryan/)
 *   [ Matt Martz ](https://profiles.wordpress.org/sivel/)
 *   [ Kira Schroder ](https://profiles.wordpress.org/kirasong/)
 *   [ Ipstenu (Mika Epstein) ](https://profiles.wordpress.org/ipstenu/)
 *   [ Mohammad Jangda ](https://profiles.wordpress.org/batmoo/)

[帮助将「Memcached Redux」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/memcached-redux)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/memcached-redux/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/memcached-redux/)，或通过[RSS](https://plugins.trac.wordpress.org/log/memcached-redux/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/memcached-redux/)。

## 更新日志

#### 0.1.7

 * Improved escaping in debug output ported from [Memcached plugin](https://wordpress.org/plugins/memcached/)(
   props @batmoo).
 * Fixed PHP notice when no Memcached server:port manually specified.

#### 0.1.6

 * Corrected documentation
 * Corrected stats collection (props @johnbillion)

#### 0.1.5

 * Added support for PHP 7+ by changing to `__construct` and pre-initializing stats

#### 0.1.3

 * Added support for WP_CACHE_KEY_SALT allowing multiple sites to use the same Memcached
   server.

#### 0.1.2

 * Allows graceful fallback to database object cache in WordPress 3.7+ for users
   without PECL Memcached available.
 * Fixes warning due to replace() call, as it does not take a compression argument
   in Memcached.

#### 0.1.1

 * Fixes a problem with the get_option() function and the return value of wp_cache_get()
   on Linux

#### 0.1

 * Initial release

## 额外信息

 *  版本 **0.1.7**
 *  最后更新：**6 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **5.4.19**
 *  语言
 * [English (US)](https://wordpress.org/plugins/memcached-redux/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[cache](https://cn.wordpress.org/plugins/tags/cache/)
   [manage cache](https://cn.wordpress.org/plugins/tags/manage-cache/)[memcached](https://cn.wordpress.org/plugins/tags/memcached/)
   [object cache](https://cn.wordpress.org/plugins/tags/object-cache/)
 *  [高级视图](https://cn.wordpress.org/plugins/memcached-redux/advanced/)

## 评级

 4.3 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/memcached-redux/reviews/?filter=5)
 *  [  2 条 4 星评价     ](https://wordpress.org/support/plugin/memcached-redux/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/memcached-redux/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/memcached-redux/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/memcached-redux/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/memcached-redux/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/memcached-redux/reviews/)

## 贡献者

 *   [ Scott Taylor ](https://profiles.wordpress.org/wonderboymusic/)
 *   [ Ryan Boren ](https://profiles.wordpress.org/ryan/)
 *   [ Matt Martz ](https://profiles.wordpress.org/sivel/)
 *   [ Kira Schroder ](https://profiles.wordpress.org/kirasong/)
 *   [ Ipstenu (Mika Epstein) ](https://profiles.wordpress.org/ipstenu/)
 *   [ Mohammad Jangda ](https://profiles.wordpress.org/batmoo/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/memcached-redux/)