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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user