Skip to content

Free, open-source macOS cleaner. CleanMyMac alternative with zero telemetry. Native SwiftUI, scheduled auto-cleaning, Xcode/Homebrew/system cache cleanup. MIT licensed.

Clarify cache dedupe behavior in scanner

Jo Xc4789b7e0cb9
diff --git a/PureMac/Services/ScanEngine.swift b/PureMac/Services/ScanEngine.swift
index 0da61a4..c657460 100644
--- a/PureMac/Services/ScanEngine.swift
+++ b/PureMac/Services/ScanEngine.swift
@@ -83,6 +83,9 @@ actor ScanEngine {
private func scanUserCache() -> CategoryResult {
var items: [CleanableItem] = []
+ // Exclude vendor roots claimed by dedicated categories from the broad
+ // ~/Library/Caches pass, then re-add the vendor root explicitly below so
+ // unrelated app caches remain visible and we only avoid double-counting.
let excludedRootPaths = Set([
"\(home)/Library/Caches/com.apple.Safari",
"\(home)/Library/Caches/Google",