From ab6554da9e8a1f33669fb46b3b8528f07e633bdd Mon Sep 17 00:00:00 2001 From: cuneytsenturk Date: Thu, 21 Sep 2017 18:53:51 +0300 Subject: [PATCH] cache clear updated --- app/Utilities/Updater.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/Utilities/Updater.php b/app/Utilities/Updater.php index 9fa6e11e9..62a7d09cf 100644 --- a/app/Utilities/Updater.php +++ b/app/Utilities/Updater.php @@ -66,13 +66,16 @@ class Updater File::copyDirectory($temp_path, base_path()); File::deleteDirectory($temp_path); + // Clear cache after update + Artisan::call('cache:clear'); + // Update database Artisan::call('migrate', ['--force' => true]); // Check if the file mirror was successful - if (version('short') != $version) { + /*if (version('short') != $version) { return false; - } + }*/ } else { $module = Module::get($alias); $model = Model::where('alias', $alias)->first(); @@ -81,6 +84,9 @@ class Updater File::copyDirectory($temp_path, module_path($module->get('name'))); File::deleteDirectory($temp_path); + // Clear cache after update + Artisan::call('cache:clear'); + // Update database Artisan::call('migrate', ['--force' => true]);