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]);