From 64b7dbd848ee0bde102362395d07e473d7f10f4c Mon Sep 17 00:00:00 2001 From: Alex Justesen Date: Wed, 7 Feb 2024 14:08:55 -0500 Subject: [PATCH] Release v0.15.2 (Hotfix) (#1114) --- app/Console/Commands/SystemMaintenance.php | 22 +++++++--------------- config/speedtest.php | 2 +- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/app/Console/Commands/SystemMaintenance.php b/app/Console/Commands/SystemMaintenance.php index ab8ea2fa0..06ce65a10 100644 --- a/app/Console/Commands/SystemMaintenance.php +++ b/app/Console/Commands/SystemMaintenance.php @@ -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; } } diff --git a/config/speedtest.php b/config/speedtest.php index d16e91c0f..111759e9f 100644 --- a/config/speedtest.php +++ b/config/speedtest.php @@ -8,7 +8,7 @@ */ 'build_date' => Carbon::parse('2024-02-07'), - 'build_version' => 'v0.15.1', + 'build_version' => 'v0.15.2', /** * General