cache clear updated

This commit is contained in:
cuneytsenturk 2017-09-21 18:53:51 +03:00
parent 5c88f913b1
commit ab6554da9e

View File

@ -66,13 +66,16 @@ class Updater
File::copyDirectory($temp_path, base_path()); File::copyDirectory($temp_path, base_path());
File::deleteDirectory($temp_path); File::deleteDirectory($temp_path);
// Clear cache after update
Artisan::call('cache:clear');
// Update database // Update database
Artisan::call('migrate', ['--force' => true]); Artisan::call('migrate', ['--force' => true]);
// Check if the file mirror was successful // Check if the file mirror was successful
if (version('short') != $version) { /*if (version('short') != $version) {
return false; return false;
} }*/
} else { } else {
$module = Module::get($alias); $module = Module::get($alias);
$model = Model::where('alias', $alias)->first(); $model = Model::where('alias', $alias)->first();
@ -81,6 +84,9 @@ class Updater
File::copyDirectory($temp_path, module_path($module->get('name'))); File::copyDirectory($temp_path, module_path($module->get('name')));
File::deleteDirectory($temp_path); File::deleteDirectory($temp_path);
// Clear cache after update
Artisan::call('cache:clear');
// Update database // Update database
Artisan::call('migrate', ['--force' => true]); Artisan::call('migrate', ['--force' => true]);