Settings for Drupal cacherouter with memcache

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


32 points

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,
),
);



11 points

Note the shared = TRUE parameter

'shared' => TRUE,

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.

Anonymous's picture
Created by Anonymous

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.