diff --git a/ProcessMaker/Console/Commands/OptimizeClearCommand.php b/ProcessMaker/Console/Commands/OptimizeClearCommand.php new file mode 100644 index 0000000000..9870ffa33b --- /dev/null +++ b/ProcessMaker/Console/Commands/OptimizeClearCommand.php @@ -0,0 +1,42 @@ +components->info('Clearing cached bootstrap files.'); + + collect([ + 'events' => fn () => $this->callSilent('event:clear') == 0, + 'views' => fn () => $this->callSilent('view:clear') == 0, + 'route' => fn () => $this->callSilent('route:clear') == 0, + ])->each(fn ($task, $description) => $this->components->task($description, $task)); + + $this->newLine(); + } +}