Skip to content

Commit a212421

Browse files
committed
Update settings.cache.php.
1 parent c19f38c commit a212421

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Diff for: app/settings/example/settings.cache.php

+7-10
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@
55
* Caching settings.
66
*/
77

8-
if (file_exists(__DIR__ . '/services.cache.yml')) {
9-
$settings['container_yamls'][] = __DIR__ . '/services.cache.yml';
10-
}
11-
12-
$disableCache = getenv('DISABLE_CACHE');
8+
// @todo: Change if needed. Maybe use getenv().
9+
$settings['cache_prefix'] = 'damopen_local';
1310

14-
if (empty($disableCache) || (bool) $disableCache === FALSE) {
11+
if (!empty(getenv('DISABLE_CACHE'))) {
1512
/* @note
1613
* Base dev caches.
1714
*/
1815

19-
// @todo: Change if needed. Maybe use getenv().
20-
$settings['cache_prefix'] = 'damopen_local';
16+
if (file_exists(__DIR__ . '/services.cache.yml')) {
17+
$settings['container_yamls'][] = __DIR__ . '/services.cache.yml';
18+
}
2119

2220
$settings['cache']['bins']['render'] = 'cache.backend.null';
2321
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
@@ -31,10 +29,9 @@
3129
// Aggregate JavaScript files on.
3230
$config['system.performance']['js']['preprocess'] = FALSE;
3331
}
34-
3532
// Code from this file can be enabled with REDIS_ENABLE.
3633
// Optional.
3734
// If you want to use it, only enable it after Drupal has been installed.
38-
if (file_exists(__DIR__ . '/settings.redis.php')) {
35+
elseif (file_exists(__DIR__ . '/settings.redis.php')) {
3936
include_once __DIR__ . '/settings.redis.php';
4037
}

0 commit comments

Comments
 (0)