Skip to content

Commit

Permalink
cache clear updated
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Sep 21, 2017
1 parent 5c88f91 commit ab6554d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/Utilities/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,16 @@ public static function update($alias, $version)
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();
Expand All @@ -81,6 +84,9 @@ public static function update($alias, $version)
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]);

Expand Down

0 comments on commit ab6554d

Please sign in to comment.