From d2cb7d4770879d6d607187071b66696f153e44f7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 11 May 2021 23:33:08 -0600 Subject: [PATCH] Update ConfigCacheService, fix db issue --- app/Services/ConfigCacheService.php | 4 ++++ config/instance.php | 2 ++ 2 files changed, 6 insertions(+) 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) ];