Skip to content
Snippets Groups Projects
Commit c42d2ba7 authored by jurgenhaas's avatar jurgenhaas
Browse files

MemCache support

parent c9f44bc0
Branches
No related tags found
No related merge requests found
......@@ -48,6 +48,15 @@ if (file_exists('sites/all/modules{{ drupal_contrib_subdir }}/redis/redis.autolo
$conf['path_inc'] = 'sites/all/modules{{ drupal_contrib_subdir }}/redis/redis.path.inc';
$conf['redis_client_interface'] = 'PhpRedis';
}
else if (file_exists('sites/all/modules{{ drupal_contrib_subdir }}/memcache/memcache.inc')) {
$conf['cache_backends'][] = 'sites/all/modules{{ drupal_contrib_subdir }}/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
$conf['page_cache_without_database'] = TRUE;
$conf['page_cache_invoke_hooks'] = FALSE;
$conf['lock_inc'] = 'sites/all/modules{{ drupal_contrib_subdir }}/memcache/memcache-lock.inc';
$conf['memcache_key_prefix'] = '{{ domain.shortname|default("default") }}_';
}
{% for line in domain.extra_settings|default([]) %}
{{line}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment