# Bug Report | Subject | Details | | :------------- | :------------------------------------------------- | | Rector version | dev-main | When rector is run with the --clear-cache option, the cache is cleared 2x. The first time here https://github.com/rectorphp/rector-src/blob/b163af7942a0e7ba09a75238362eca373a915194/src/Console/Command/ProcessCommand.php#L209 and the second time https://github.com/rectorphp/rector-src/blob/b163af7942a0e7ba09a75238362eca373a915194/src/FileSystem/FilesFinder.php#L115 I guess one clearing of cache should be enough
Bug Report
When rector is run with the --clear-cache option, the cache is cleared 2x.
The first time here https://github.com/rectorphp/rector-src/blob/b163af7942a0e7ba09a75238362eca373a915194/src/Console/Command/ProcessCommand.php#L209 and the second time https://github.com/rectorphp/rector-src/blob/b163af7942a0e7ba09a75238362eca373a915194/src/FileSystem/FilesFinder.php#L115
I guess one clearing of cache should be enough