Linux 软件免费装

Memcached Object Cache

开发者 ryan
sivel
andy
nacin
barry
ethitter
nickdaugherty
batmoo
simonwheatley
jenkoian
bor0
aidvu
更新时间 2022年11月8日 21:17
PHP版本: 5.6.20 及以上
WordPress版本: 6.1

标签

cache memcached

下载

2.0.2 2.0.5 4.0.0 3.0.0 3.0.1 3.0.2 3.2.0 3.2.2 2.0.4 2.0.6 2.0 2.0.1 2.0.3

详情介绍:

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 127.0.0.1:11211.
  2. Install the PECL memcache extension
  3. Copy object-cache.php to wp-content
  4. Add the WP_CACHE_KEY_SALT constant to the wp-config.php: php define( 'WP_CACHE_KEY_SALT', '...long random string...' );
This helps prevent cache pollution when multiplte WordPress installs are using the same Memcached server. The value must be unique for each WordPress install.

常见问题:

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

更新日志:

4.0.0 3.2.2 3.2.1 3.2.0 3.1.0 3.0.2 3.0.1 3.0.0 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2