Skip to content

Commit 7392d63

Browse files
[Cache] Fix double clear-cache (#8096)
* Fix double clear-cache * [ci-review] Rector Rectify --------- Co-authored-by: GitHub Action <actions@github.com>
1 parent 3680b8e commit 7392d63

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎src/Console/Command/ProcessCommand.php‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,9 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
199199
}
200200

201201
$optionDebug = (bool) $input->getOption(Option::DEBUG);
202+
// clear cache
202203
if ($optionDebug) {
203204
$application->setCatchExceptions(false);
204-
}
205-
206-
// clear cache
207-
$optionClearCache = (bool) $input->getOption(Option::CLEAR_CACHE);
208-
if ($optionDebug || $optionClearCache) {
209205
$this->changedFilesDetector->clear();
210206
}
211207
}

0 commit comments

Comments
 (0)