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

Support Jail and Multisite for Redis and Memcached

parent 3a34540d
Branches
No related tags found
No related merge requests found
......@@ -63,7 +63,11 @@ $conf['varnish_version'] = '{{ varnish_version }}';
if (file_exists('sites/all/modules{{ drupal_contrib_subdir }}/redis/redis.autoload.inc')) {
$conf['cache_backends'][] = 'sites/all/modules{{ drupal_contrib_subdir }}/redis/redis.autoload.inc';
$conf['cache_default_class'] = 'Redis_Cache';
{% if drupal.jail is defined %}
$conf['cache_prefix'] = '{{ drupal.jail.name }}_{{ item.shortname|default("default") }}_';
{% else %}
$conf['cache_prefix'] = '{{ item.shortname|default("default") }}_';
{% endif %}
$conf['lock_inc'] = 'sites/all/modules{{ drupal_contrib_subdir }}/redis/redis.lock.inc';
$conf['path_inc'] = 'sites/all/modules{{ drupal_contrib_subdir }}/redis/redis.path.inc';
$conf['redis_client_interface'] = 'PhpRedis';
......@@ -75,7 +79,11 @@ else if (file_exists('sites/all/modules{{ drupal_contrib_subdir }}/memcache/memc
$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';
{% if drupal.jail is defined %}
$conf['memcache_key_prefix'] = '{{ drupal.jail.name }}_{{ item.shortname|default("default") }}_';
{% else %}
$conf['memcache_key_prefix'] = '{{ item.shortname|default("default") }}_';
{% endif %}
}
{% if item.cloudflare|default(false) %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment