Skip to content

Commit 64b7dbd

Browse files
authored
Release v0.15.2 (Hotfix) (alexjustesen#1114)
1 parent 9635712 commit 64b7dbd

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

app/Console/Commands/SystemMaintenance.php

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,23 @@ class SystemMaintenance extends Command
2626
* Execute the console command.
2727
*/
2828
public function handle()
29-
{
30-
$this->refreshCache();
31-
32-
return Command::SUCCESS;
33-
}
34-
35-
/**
36-
* Clear and refresh the cache.
37-
*/
38-
protected function refreshCache(): void
3929
{
4030
try {
41-
Artisan::call('optimize:clear');
31+
Artisan::call('cache:clear');
4232
} catch (\Throwable $th) {
4333
Log::info('System maintenance failed to clear the cache.');
4434

45-
return;
35+
return Command::FAILURE;
4636
}
4737

4838
try {
49-
Artisan::call('optimize');
39+
Artisan::call('view:clear');
5040
} catch (\Throwable $th) {
51-
Log::info('System maintenance failed to fresh the cache.');
41+
Log::info('System maintenance failed to clear the view cache.');
5242

53-
return;
43+
return Command::FAILURE;
5444
}
45+
46+
return Command::SUCCESS;
5547
}
5648
}

config/speedtest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
'build_date' => Carbon::parse('2024-02-07'),
1010

11-
'build_version' => 'v0.15.1',
11+
'build_version' => 'v0.15.2',
1212

1313
/**
1414
* General

0 commit comments

Comments
 (0)