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

If no jail is used, the redis cache prefix will now be set to the same as the database name

parent 622c5059
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ if (file_exists('sites/all/modules{{ drupal_contrib_subdir }}/redis/redis.autolo
{% if drupal.jail is defined %}
$conf['cache_prefix'] = '{{ drupal.jail.name }}_{{ item.shortname|default("default") }}_';
{% else %}
$conf['cache_prefix'] = '{{ item.shortname|default("default") }}_';
$conf['cache_prefix'] = '{{ item.db.name }}_';
{% 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';
......
......@@ -120,7 +120,7 @@ if (file_exists('modules/contrib/redis/redis.info.yml') && extension_loaded('red
{% if drupal.jail is defined %}
$settings['cache_prefix'] = '{{ drupal.jail.name }}_{{ item.shortname|default("default") }}_';
{% else %}
$settings['cache_prefix'] = '{{ item.shortname|default("default") }}_';
$settings['cache_prefix'] = '{{ item.db.name }}_';
{% endif %}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment