Rédiger « OVH/VPC02/idneuf/DrupalMemcache » ici.

Installation

apt-get -y install php5-memcache memcached

Module Drupal : https://ftp.drupal.org/files/projects/memcache-7.x-1.5.tar.gz

Configuration: sites/default/settings.php

//Use memcache $conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc'; $conf['cache_default_class'] = 'MemCacheDrupal'; $conf['cache_inc'] = 'sites/all/modules/contrib/memcache/memcache.inc';

//Memcache session $conf['session_inc'] = 'sites/all/modules/memcache/unstable/memcache-session.inc';

//Memcache lock $conf['lock_inc'] = 'sites/all/modules/memcache/memcache-lock.inc';

//Add in stampede protection $conf['memcache_stampede_protection'] = TRUE;

//Don't bootstrap the database when serving pages from the cache. $conf['page_cache_without_database'] = TRUE; $conf['page_cache_invoke_hooks'] = FALSE;