diff --git a/src/Console/Command/ProcessCommand.php b/src/Console/Command/ProcessCommand.php index 511b536cea6..30958d3ef6b 100644 --- a/src/Console/Command/ProcessCommand.php +++ b/src/Console/Command/ProcessCommand.php @@ -199,13 +199,9 @@ protected function initialize(InputInterface $input, OutputInterface $output): v } $optionDebug = (bool) $input->getOption(Option::DEBUG); + // clear cache if ($optionDebug) { $application->setCatchExceptions(false); - } - - // clear cache - $optionClearCache = (bool) $input->getOption(Option::CLEAR_CACHE); - if ($optionDebug || $optionClearCache) { $this->changedFilesDetector->clear(); } }