Settings for Drupal cacherouter with memcache

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

Created by Anonymous 15 weeks 3 days ago
  Tags:

Answer(s):

3 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.

Created by Anonymous

Post your Answer

  • Lines and paragraphs break automatically.
  • 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 <% ... %>.
  • Links to specified hosts will have a rel="nofollow" added to them.

More information about formatting options