From 6220f710df4f5410a2c07e349d971663381a4572 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Thu, 2 Feb 2017 15:06:35 -0500 Subject: [PATCH] Cache configuration file when editing environment or mail settings. --- app/Console/Commands/UpdateEmailSettings.php | 3 +++ app/Console/Commands/UpdateEnvironment.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/Console/Commands/UpdateEmailSettings.php b/app/Console/Commands/UpdateEmailSettings.php index 620982b98..edffd9fa6 100644 --- a/app/Console/Commands/UpdateEmailSettings.php +++ b/app/Console/Commands/UpdateEmailSettings.php @@ -155,6 +155,9 @@ class UpdateEmailSettings extends Command file_put_contents($file, $envContents); $bar->finish(); + + $this->line('Updating evironment configuration cache file.'); + $this->call('config:cache'); echo "\n"; } } diff --git a/app/Console/Commands/UpdateEnvironment.php b/app/Console/Commands/UpdateEnvironment.php index 085b081df..3805ffd51 100644 --- a/app/Console/Commands/UpdateEnvironment.php +++ b/app/Console/Commands/UpdateEnvironment.php @@ -150,6 +150,9 @@ class UpdateEnvironment extends Command file_put_contents($file, $envContents); $bar->finish(); + + $this->line('Updating evironment configuration cache file.'); + $this->call('config:cache'); echo "\n"; } }