You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, we completely disable caching when you run with --fix and --diff, the reason being that the caching exists at a higher level (we save Diagnostics), and those commands rely on side-effects that happen during the creation of Diagnostics.
It's highly inefficient to avoid caching there!
The text was updated successfully, but these errors were encountered:
## Summary
If a file has no diagnostics, then we can read and write that
information from and to the cache, even if the fix mode is `--fix` or
`--diff`. (Typically, we can't read or write such results from or to the
cache, because `--fix` and `--diff` have side effects that take place
during diagnostic analysis (writing to disk or outputting the diff).)
This greatly improves performance when running `--fix` on a codebase in
the common case (few diagnostics).
Closes#8311.
Closes#8315.
Right now, we completely disable caching when you run with
--fix
and--diff
, the reason being that the caching exists at a higher level (we saveDiagnostics
), and those commands rely on side-effects that happen during the creation ofDiagnostics
.It's highly inefficient to avoid caching there!
The text was updated successfully, but these errors were encountered: