diff --git a/app/Services/ConfigCacheService.php b/app/Services/ConfigCacheService.php index 4a871bcdc..7c1f0c9ab 100644 --- a/app/Services/ConfigCacheService.php +++ b/app/Services/ConfigCacheService.php @@ -44,6 +44,10 @@ class ConfigCacheService 'uikit.show_custom.js' ]; + if(!config('instance.enable_cc')) { + return config($key); + } + if(!in_array($key, $allowed)) { return config($key); } diff --git a/config/instance.php b/config/instance.php index 30bcc4c4c..a4cc534b9 100644 --- a/config/instance.php +++ b/config/instance.php @@ -72,4 +72,6 @@ return [ 'org' => env('COVID_LABEL_ORG', 'visit the WHO website') ] ], + + 'enable_cc' => env('ENABLE_CONFIG_CACHE', false) ];