Following is a configuration to be put in drupal's settings.php on using drupal cacherouter with memcache:
$conf['cache_inc'] = './sites/all/modules/cacherouter/cacherouter.inc';
$conf['cacherouter'] = array(
'default' => array(
'engine' => 'memcache',
'server' => array('192.168.0.100:11211', '192.168.0.100:11212'),
'shared' => TRUE,
),
);
Note the shared = TRUE parameter
This enables locking on cache tables and should be enabled only when we are trying to use the same memcache install for multiple cache tables like in the above case.
Post your Answer