Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Memcache config
- $conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
- $conf['cache_default_class'] = 'MemCacheDrupal';
- $conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
- $memcache_servers = array(
- '10.201.61.131:11211' => 'default',
- '10.201.61.132:11211' => 'default',
- );
- $conf['memcache_servers'] = array();
- // Connect to the local memcache server first.
- $key = $_SERVER['SERVER_ADDR'] . ':11211';
- if (isset($memcache_servers[$key])) {
- $conf['memcache_servers'] += array(
- $key => $memcache_servers[$key],
- );
- }
- // Add the rest of the servers into the mix.
- $conf['memcache_servers'] += $memcache_servers;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement