Aller au contenu


Photo

SAFARI : des caches monstrueux

Et plein de mouchards ?

  • Please log in to reply
2 replies to this topic

#1 ungars

ungars

    Habitué(e)

  • Membres
  • PipPip
  • 148 Messages :
  • Configuration:iMAC Retina 4k 3Ghz Intel i5 8 Go MAC OS High Sierra 10.13.4.
  • Sexe:Masculin

Posté 22 avril 2019 - 13:49

Hello,

 

Quand on regarde dans les caches de SAFARI (/Users/xxxxxLibrary/Caches/com.apple.Safari), si on ne fait pas le ménage régulièrement, le volume monte très vite giga-octets. J'en vire environ 1 Giga-octets par semaine. Il n'y a aucun moyen de gérer finement ces caches. On peut vider ce dossier en totalité sans faire de détail.

 

Mais il y a aussi ce que l'on trouve dans /Users/xxxxxi/Library/Safari, et là c'est aussi très volumineux, et très diversifié.

On y trouve :

 

A conserver ?

AutoFillCorrections.db

AutoFillCorrections.db-wal
 
Bookmarks.plist ==> A SAUVERGARDER REGULIEREMENT
 
A conserver ?
CloudAutoFillCorrections.db
CloudAutoFillCorrections.db-wal
CloudBookmarksMigrationCoordinator/
CloudHistoryRemoteConfiguration.plist
 
A supprimer systématiquement :
Databases/
Favicon Cache/
History.db
History.db-lock
History.db-shm
History.db-wal
 
A conserver ?
KnownSitesUsingPlugIns.plist
 
A supprimer systématiquement :
LastSession.plist
LocalStorage/
PerSitePreferences.db
PerSitePreferences.db-shm
PerSitePreferences.db-wal
PerSiteZoomPreferences.plist
 
A conserver ?
PlugInOrigins.plist
 
A supprimer systématiquement :
RecentlyClosedTabs.plist
RemoteNotifications/
 
A conserver ?
SearchDescriptions.plist
SitesAllowedToAutoplay.plist
Template Icons/
 
A supprimer systématiquement :
TopSites.plist
Touch Icons Cache/
UserMediaPermissions.plist
 
Là aussi le volume sera conséquent, même au bout d'une journée, mais pas comme les caches néanmoins.
Quel intérêt de conserver autant de mouchards ?
Car ce sont bien des mouchards, quand on compare avec Firefox, non ? Firefox dont la philosophie est radicalement différente d'Apple.


#2 BorakLeRouge

BorakLeRouge

    Hamster d'or (dort ?)

  • Membres
  • PipPipPipPipPipPipPip
  • 3 982 Messages :
  • Configuration:Mac Mini Core i7 2019 - 16Go - 2x1To SSD
  • Sexe:Masculin
  • Localisation:Cormeilles en Parisis.rb
  • Passions:Macintosh, Photo, Haute-fidélité, Ski, Roller, Call of Duty, Tactical Ops, Counter Strike, Worms 1

Posté 22 avril 2019 - 19:28

Ah oui, c'est vrai que ça existe Safari. Je préfère Firefox et Chrome...


Je fais mes sauvegardes sur NSA-Cloud !

Au bout de 10 ans, le vieux MacPro vient de laisser sa place à un MacMini i7...


#3 ungars

ungars

    Habitué(e)

  • Membres
  • PipPip
  • 148 Messages :
  • Configuration:iMAC Retina 4k 3Ghz Intel i5 8 Go MAC OS High Sierra 10.13.4.
  • Sexe:Masculin

Posté 27 avril 2019 - 23:43

Ah oui, c'est vrai que ça existe Safari. Je préfère Firefox et Chrome...

 

Ben ça me fait une belle jambe alors.

Sinon, un AppleScript pour nettoyer :

 

--

-- Initialiser les constantes

--

set label_Annuler to "Cancel"

set label_Continuer to "OK"

--

-- Récupérer le nom du dossier de l'utilisateur courant

--

tell application "System Events" to set username2 to name of (current user)

--

-- Demande de confirmation

--

display dialog "Mettre dans la corbeille les caches de Safari ?" buttons {label_Continuer, label_Annuler} ¬

default button 1 ¬

with icon caution

copy the result as list to {the button_pressed}

if the button_pressed is label_Annuler then

tell me to quit

end if

--

-- Action !

--

tell application "Finder"

try

delete folder "WebKitCache" of folder "com.apple.Safari" of folder "Caches" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete folder "WebKit" of folder "com.apple.Safari" of folder "Caches" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete folder "TabSnapshots" of folder "com.apple.Safari" of folder "Caches" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete folder "fsCachedData" of folder "com.apple.Safari" of folder "Caches" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "Cache.db" of folder "com.apple.Safari" of folder "Caches" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "Cache.db-shm" of folder "com.apple.Safari" of folder "Caches" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "Cache.db-wal" of folder "com.apple.Safari" of folder "Caches" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete every folder of folder "Databases" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete every file of folder "Databases" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete folder "Favicon Cache" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete folder "LocalStorage" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete folder "RemoteNotifications" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete folder "Touch Icons Cache" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "Downloads.plist" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "History.db" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "History.db-lock" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "History.db-shm" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "History.db-wal" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "LastSession.plist" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "PerSitePreferences.db" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "PerSitePreferences.db-shm" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "PerSitePreferences.db-wal" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "RecentlyClosedTabs.plist" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "CacheSettings.plist" of folder "Template Icons" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "PerSiteZoomPreferences.plist" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "SearchDescriptions.plist" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "TopSites.plist" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete every file of folder "Touch Icons Cache" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

try

delete file "UserMediaPermissions.plist" of folder "Safari" of folder "Library" of folder username2 of folder "Users" of startup disk

end try

end tell


Ce message a été modifié par ungars - 27 avril 2019 - 23:44 .





0 utilisateur(s) en train de lire ce sujet

0 membre(s), 0 invité(s), 0 utilisateur(s) anonyme(s)