Memcached Redux
Memcached Redux
Description
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' )
) );
Installation
-
Install memcached on at least one server. Note the connection info. The default is
127.0.0.1:11211. -
Install the PECL memcached extension
-
Copy object-cache.php to wp-content
Reviews
Does its Job, fast - dangerous
By kech61 on June 19, 2020
Simple but it works!
By Olaf Lederer (finalwebsites) on February 20, 2019
Super!!!
By solgaz on April 29, 2018
Works with PHP7
By ramanm on January 10, 2018
Best Object Cache plugin
By Pothi Kalimuthu (pothi) on September 3, 2016
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!
Fatal error
By Den999 on February 7, 2017
Fatal error: Cannot redeclare wp_cache_add()
Changelog
0.1.7
- Improved escaping in debug output ported from Memcached plugin (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
__constructand 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