Home ›
Configure Memcache on a Drupal siteConfigure Memcache on a Drupal site
Submitted by Benjamin Melançon on June 11, 2014 - 9:52am
This has to be done for each site. This is after installing Memcache on your server.
Then, in settings.php, add:
<?php
/**
* Memcache
*/
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['memcache_key_prefix'] = 'agaric';
?>
Do not enable any memcache module, neither memcache_admin nor memcache need to be enabled for this to work.
Searched words:
Memcaching Drupal for better performance
configuring memcache for Drupal
store Drupal's caches in memory RAM
Comments
Post new comment