Memcache on the WWW servers
Drupal 6
- In php.ini set memcache.hash_strategy="consistent".
- Put your site into offline mode.
- Download and install the memcache module.
- If you have previously been running the memcache module, run update.php.
- Edit settings.php to make memcache the default cache class, for example:
# Only set this if we're using the web server, not drush
if(!drupal_is_cli()) {
$conf['cache_inc'] = './sites/all/modules/memcache/memcache.inc';
}
- Bring your site back online.
Drupal 7
- Put your site into offline mode.
- Download and install the memcache module.
- If you have previously been running the memcache module, run update.php.
- Edit settings.php to make memcache the default cache class, for example:
# Only set this if we're using the web server, not drush
if(!drupal_is_cli()) {
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
// The 'cache_form' bin must be assigned no non-volatile storage.
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['memcache_key_prefix'] = 'something_unique';
}
- Bring your site back online.
- Review memcache reports at admin/reports/memcache
See https://drupal.org/node/1131468 for more information