From dc8b8eae78427956379a5a5d6ceb0cc8ccfe82f5 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Fri, 29 Jan 2016 23:01:07 +0000 Subject: [PATCH] Removed config caching system for now --- .../Providers/ConfigServiceProvider.php | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/app/Foundation/Providers/ConfigServiceProvider.php b/app/Foundation/Providers/ConfigServiceProvider.php index 363c6373..866742eb 100644 --- a/app/Foundation/Providers/ConfigServiceProvider.php +++ b/app/Foundation/Providers/ConfigServiceProvider.php @@ -14,7 +14,6 @@ namespace CachetHQ\Cachet\Foundation\Providers; use CachetHQ\Cachet\Config\Repository; use CachetHQ\Cachet\Models\Setting as SettingModel; use Exception; -use Illuminate\Contracts\Console\Kernel; use Illuminate\Support\Facades\Config; use Illuminate\Support\ServiceProvider; @@ -27,20 +26,6 @@ class ConfigServiceProvider extends ServiceProvider */ public function boot() { - if ($this->app->configurationIsCached()) { - if ($this->app->environment() === 'production') { - $this->app->terminating(function () { - if ($this->app->setting->stale()) { - $this->app->make(Kernel::class)->call('config:cache'); - } - }); - } else { - $this->app->make(Kernel::class)->call('config:clear'); - } - - return; - } - try { $this->app->config->set('setting', $this->app->setting->all()); } catch (Exception $e) { @@ -72,12 +57,6 @@ class ConfigServiceProvider extends ServiceProvider } $this->app->config->set('cors.paths.api/v1/*.allowedOrigins', $allowedOrigins); - - if ($this->app->environment() === 'production') { - $this->app->terminating(function () { - $this->app->make(Kernel::class)->call('config:cache'); - }); - } } /**