File tree 1 file changed +7
-10
lines changed
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 5
5
* Caching settings.
6
6
*/
7
7
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 ' ;
13
10
14
- if (empty ($ disableCache ) || ( bool ) $ disableCache === FALSE ) {
11
+ if (! empty (getenv ( ' DISABLE_CACHE ' )) ) {
15
12
/* @note
16
13
* Base dev caches.
17
14
*/
18
15
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
+ }
21
19
22
20
$ settings ['cache ' ]['bins ' ]['render ' ] = 'cache.backend.null ' ;
23
21
$ settings ['cache ' ]['bins ' ]['dynamic_page_cache ' ] = 'cache.backend.null ' ;
31
29
// Aggregate JavaScript files on.
32
30
$ config ['system.performance ' ]['js ' ]['preprocess ' ] = FALSE ;
33
31
}
34
-
35
32
// Code from this file can be enabled with REDIS_ENABLE.
36
33
// Optional.
37
34
// 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 ' )) {
39
36
include_once __DIR__ . '/settings.redis.php ' ;
40
37
}
You can’t perform that action at this time.
0 commit comments