Result Cache busted when creating a new file #10571
-
Hi, If I scan the project twice it is super fast due to the result cache. If I make a small change within one of the existing files, the scan is still very fast depending on the file and the dependencies obviously. But If I add a single empty php file that is not used anywhere it looks like about 20% of the cache is busted. So it rescans about 3k of the files and it takes a while. Is this expected behavior? I tried diffing the result cache in between runs and as expected the diff of the cache only includes the new file.
I have a fairly basic config
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This is expected behaviour. Adding a new file might fix any of the reported errors, so PHPStan reanalyses all files with errors. |
Beta Was this translation helpful? Give feedback.
This is expected behaviour. Adding a new file might fix any of the reported errors, so PHPStan reanalyses all files with errors.