1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-09 18:29:18 +00:00

Spotlight cache cleaning moved to the optimize command

This commit is contained in:
Tw93
2025-12-10 10:02:49 +08:00
parent 4ff8c3afa3
commit 198591289f
5 changed files with 54 additions and 4 deletions

View File

@@ -216,8 +216,6 @@ clean_project_caches() {
}
# Clean Spotlight user caches
# Cleans CoreSpotlight index cache and Spotlight saved state
# System Spotlight index (/System/Volumes/Data/.Spotlight-V100) is never touched
clean_spotlight_caches() {
local cleaned_size=0
local cleaned_count=0

View File

@@ -80,8 +80,7 @@ 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
# MOVED: Spotlight cache cleanup moved to optimize command
safe_clean ~/Library/Caches/com.apple.photoanalysisd "Photo analysis cache"
safe_clean ~/Library/Caches/com.apple.akd "Apple ID cache"