Skip to content

Commit

Permalink
Release v0.15.2 (Hotfix) (#1114)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjustesen authored Feb 7, 2024
1 parent 9635712 commit 64b7dbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
22 changes: 7 additions & 15 deletions app/Console/Commands/SystemMaintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,23 @@ class SystemMaintenance extends Command
* Execute the console command.
*/
public function handle()
{
$this->refreshCache();

return Command::SUCCESS;
}

/**
* Clear and refresh the cache.
*/
protected function refreshCache(): void
{
try {
Artisan::call('optimize:clear');
Artisan::call('cache:clear');
} catch (\Throwable $th) {
Log::info('System maintenance failed to clear the cache.');

return;
return Command::FAILURE;
}

try {
Artisan::call('optimize');
Artisan::call('view:clear');
} catch (\Throwable $th) {
Log::info('System maintenance failed to fresh the cache.');
Log::info('System maintenance failed to clear the view cache.');

return;
return Command::FAILURE;
}

return Command::SUCCESS;
}
}
2 changes: 1 addition & 1 deletion config/speedtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
'build_date' => Carbon::parse('2024-02-07'),

'build_version' => 'v0.15.1',
'build_version' => 'v0.15.2',

/**
* General
Expand Down

0 comments on commit 64b7dbd

Please sign in to comment.