File tree Expand file tree Collapse file tree 2 files changed +8
-16
lines changed
Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments