diff --git a/app/Services/ConfigCacheService.php b/app/Services/ConfigCacheService.php index 4a871bcd..7c1f0c9a 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 30bcc4c4..a4cc534b 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) ];