cache clear updated
This commit is contained in:
parent
5c88f913b1
commit
ab6554da9e
@ -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]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user