1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 05:54:00 +00:00

Clean Spotlight user caches

This commit is contained in:
Tw93
2025-12-09 18:40:35 +08:00
parent f364065740
commit bd51e86072
2 changed files with 58 additions and 0 deletions

View File

@@ -79,6 +79,10 @@ clean_finder_metadata() {
clean_macos_system_caches() {
safe_clean ~/Library/Saved\ Application\ State/* "Saved application states"
safe_clean ~/Library/Caches/com.apple.spotlight "Spotlight cache"
# Clean Spotlight user caches (CoreSpotlight can grow very large)
clean_spotlight_caches
safe_clean ~/Library/Caches/com.apple.photoanalysisd "Photo analysis cache"
safe_clean ~/Library/Caches/com.apple.akd "Apple ID cache"
safe_clean ~/Library/Caches/com.apple.Safari/Webpage\ Previews/* "Safari webpage previews"