chrome-cache names two of the three places Chrome keeps its cache:
"patterns": ["**/google/chrome/user data/*/cache/**", "**/.cache/google-chrome/**"]
The first is Windows (AppData\Local\Google\Chrome\User Data\Default\Cache),
the second Linux (~/.cache/google-chrome). macOS keeps it somewhere else
again — ~/Library/Caches/Google/Chrome/<Profile>/Cache — with no
User Data component, so neither pattern reaches it:
/users/x/library/caches/google/chrome/default/cache/data_0 -> Unknown/Review via -
report::build drops unknown entries, so on macOS the Chrome cache is not
merely unclassified: it never appears in the report at all. It is usually
one of the largest reclaimable things on the disk.
firefox-cache already carries its macOS pattern
(**/library/caches/firefox/profiles/*/cache2/**), which is what makes
this look like an oversight rather than a decision.
Adding **/library/caches/google/chrome/*/cache/** covers it. Worth
checking the same directory for the neighbours Chrome keeps there —
Code Cache, GPUCache — and adding a case to rules.rs beside
firefox_cache_is_still_safe_to_remove. Chromium and Edge keep their
caches in the same shape under different vendor directories, if you want
to go further in the same PR.
This is one specific gap; #71 is the standing invitation for the rest of
the platform caches.
crates/diskern-core/rules/base.json:27
chrome-cachenames two of the three places Chrome keeps its cache:The first is Windows (
AppData\Local\Google\Chrome\User Data\Default\Cache),the second Linux (
~/.cache/google-chrome). macOS keeps it somewhere elseagain —
~/Library/Caches/Google/Chrome/<Profile>/Cache— with noUser Datacomponent, so neither pattern reaches it:report::builddrops unknown entries, so on macOS the Chrome cache is notmerely unclassified: it never appears in the report at all. It is usually
one of the largest reclaimable things on the disk.
firefox-cachealready carries its macOS pattern(
**/library/caches/firefox/profiles/*/cache2/**), which is what makesthis look like an oversight rather than a decision.
Adding
**/library/caches/google/chrome/*/cache/**covers it. Worthchecking the same directory for the neighbours Chrome keeps there —
Code Cache,GPUCache— and adding a case torules.rsbesidefirefox_cache_is_still_safe_to_remove. Chromium and Edge keep theircaches in the same shape under different vendor directories, if you want
to go further in the same PR.
This is one specific gap; #71 is the standing invitation for the rest of
the platform caches.
crates/diskern-core/rules/base.json:27