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

docker4drupal#58 Optimize Redis configuration in settings.local.php

parent 9e5559f9
No related branches found
No related tags found
1 merge request!229Merging develop into main
Pipeline #1253930 passed
......@@ -26,12 +26,13 @@ $settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
$config['advagg.settings']['enabled'] = FALSE;
{% endif %}
if (!getenv('L3D_DISABLE_REDIS') && file_exists('modules/contrib/redis/example.services.yml')) {
$settings['redis.connection']['interface'] = 'PhpRedis';
$settings['redis.connection']['host'] = 'redis';
$settings['cache']['default'] = 'cache.backend.redis';
$settings['container_yamls'][] = 'modules/contrib/redis/example.services.yml';
$settings['queue_default'] = 'queue.redis';
if (!getenv('L3D_DISABLE_REDIS') && file_exists('modules/contrib/redis/settings.redis.example.php')) {
include 'modules/contrib/redis/settings.redis.example.php';
if ($settings['cache']['default'] ?? '' === 'cache.backend.redis') {
$settings['redis.connection']['interface'] = 'PhpRedis';
$settings['redis.connection']['host'] = 'redis';
$settings['queue_default'] = 'queue.redis';
}
}
$settings['cache']['bins']['bootstrap'] = 'cache.backend.chainedfast';
$settings['cache']['bins']['discovery'] = 'cache.backend.chainedfast';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment