Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

Memcached Object Cache


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


  1. Install memcached on at least one server. Note the connection info. The default is

  2. Install the PECL memcache extension

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


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(         '',         ''     ) ); 

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 


1 Aprile 2019
Still works like clockwork! Thank you gents. You might want to consider updating the "tested up to". That is all 🙂
18 Giugno 2017
For my purposes, that assume a default configuration (of 'memcached'), this little plugin just works. And it seems to cache a wide variety of objects by design. It's important to follow the instructions carefully though, as this is a drop-in, the installation of which is not that, of a standard plugin. Dirk
1 Novembre 2016
Hi! It works out-of-box, just added the file and done! Awesome work here! Only had to replace the constructor name at 424 to -> function __construct() - so we avoid a Warning at PHP7, for example. Kind Regards, Rafael
Leggi tutte le recensioni di 15

Crediti e riconoscimenti

“Memcached Object Cache” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Traduci “Memcached Object Cache” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)


  • Fix key generation error in switch_to_blog()


  • Flush site cache by rotating keys
  • Flush global cache when flushing main site


  • Flush the local cache on wp_cache_flush()


  • Fix missing global in switch_to_blog


  • Remove deprecated constructor


  • Support for unix sockets


  • Break references by cloning objects
  • Keep local cache in sync with memcached when using incr and decr
  • Handle limited environments where is_multisite() is not defined
  • Fix setting and getting 0
  • PHP 5.2.4 is now required
  • Use the WP_CACHE_KEY_SALT constant if available to gaurantee uniqueness of keys