diff --git a/app/Foundation/Providers/ConfigServiceProvider.php b/app/Foundation/Providers/ConfigServiceProvider.php index b6d810e7f..974a59a22 100644 --- a/app/Foundation/Providers/ConfigServiceProvider.php +++ b/app/Foundation/Providers/ConfigServiceProvider.php @@ -41,10 +41,8 @@ class ConfigServiceProvider extends ServiceProvider } $this->app->terminating(function () use ($cache, $path) { - if ($this->app->setting->stale()) { + if ($this->app->setting->stale() || $cache === false) { $this->app->files->put($path, 'app->setting->all(), true).';'.PHP_EOL); - } elseif ($cache === false) { - $this->app->files->put($path, '