You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I clear cache in Safari now?

found the answer.


Message was edited by: Lisa Hodgen

MacBook Pro (13-inch, Mid 2012), OS X Mountain Lion (10.8.2)

Posted on Oct 19, 2012 1:52 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 19, 2012 1:54 PM

You can enable the Develop menu to clear the cache if you don't want to clear your history...


From your Safari menu bar click Safari > Preferences then select the Advanced tab.


Select: Show Develop menu in menu bar


Now from the menu bar click Develop > Empty Caches

71 replies

Jan 3, 2013 11:34 AM in response to Vritika

Vritika --


Quit Safari.


Click out on your desktop somewhere to get Finder menu on the top menu bar. Then look over to the right, and select the "Go" menu while holding down the "Option"button. You will then see an option for "Library" right under your home folder on that list.


That is your hidden Users Library. Open that Library, go down to Caches. Open that, and then look for apple.com.Safari. Take that file to the trash.


Restart Safari.

May 17, 2013 9:17 PM in response to Carolyn Samit

Carolyn Samit wrote:


No problem 🙂 Appreciate the points!


@ Carolyn - NO -- do not delete a post. You might think you are only asking for yourself - but this is now May 18th (7 months later) and I came looking for the same answers (just upgraded hardware) and came from 10.6.8 (Snow Leopard).


Lots of stuff between the 2 systems are similar and Mac-like - but there are enough differences that I'm having to trouble shoot above and beyond my normal "new system" tweaks.


So you never know when and for whom a Question will help someone else out.


Thank you for posing the question and thanks to all for pointing out the change.


As usual the UI Devs at Apple (among other software companies) like to mess with us.

Aug 1, 2013 4:40 AM in response to freediverx01

Hi freediver,


I don't want to have to manually delete a file that's burried several layers deep in a hidden folder


I agree. It should be easier. However, having followed the procedure posted by SeanWolf for finding and then deleting the Cache.db file, I right-clicked on the folder com.apple.Safari that contains the cache, and made an Alias of that folder. I moved the Alias to a handy place. The next time I need to clear the Safari cache, a double-click on that Alias will open that folder and I can delete Cache.db


Thank you all for your help.


Regards,

Ian.

Aug 9, 2013 12:23 PM in response to Yellowbox

Try this:


Save the following Applescript as an application

Run to delete the Cache.db



--Empty Safari Cache (v1)

--NB: Save as application

---------------------------------------------


(*==========PROPERTIES==========*)


property path2home : (path to home folder)

property TargetFileName : "Cache.db"

property TargetFileLocation : (path2home & "Library:Caches:com.apple.Safari:") as text

property TargetFile : TargetFileLocation & TargetFileName

property mytitle : "Empty Safari Cache"



(*==========SCRIPT==========*)


--check if Safari is running

set SafariRunning to false

tell application "Finder" to get name of processes

set application_list to result

if application_list contains "Safari" is true then

set SafariRunning to true

end if


--dialog

display dialog "Empty Safari Cache?" default button 2 --with icon 1

--quit Safari first!

if SafariRunning is true then

display dialog "Quit Safari to continue!" buttons {"Cancel", "OK"} default button 2 with icon 0

end if

tell application "Safari" to quit

delay 1


--trash file

tell application "Finder"

if exists file TargetFile then


deleteTargetFile

tell me

display dialog "Cache emptied." buttons {"Launch Safari", "Done"} default button 2 --with icon 1 with title mytitle

set button_returned to button returned of the result

end tell

else

tell me

display dialog "Cache already empty!" buttons {"Launch Safari", "Done"} default button 2 --with icon 1 with title mytitle

set button_returned to button returned of the result

end tell

end if

end tell


--relaunch Safari

if button_returned is "Launch Safari" then

tell application "Safari" to activate

end if


(*==========END==========*)

Sep 21, 2013 12:28 PM in response to Yellowbox

Hi Yellowbox, I simply set up the folder alias as you suggest and can delete the file called cache.db, but what are the other two caches cache.db-shm and cache.db-wal?


There is also a cache in my folder called Webpage Previews that shows previews of all/some of the browser pages initiated from - I think - Google search, maybe bookmarks, and ?????


What is the effect of deleting these additional caches?

I see above someone suggested deleting the full folder.

Jan 7, 2014 1:34 PM in response to Lisa Hodgen

Is "Empty Caches" the same as "Disaable Caches"?


It doesn't show "Empty" when I click on "Develop" in menu bar. Just shows "Disable".


Can I do any harm or lose information, etc, when I click on this? Can I lose important 'stuff'? (I'm not even sure what a 'cache' is....a guy I work with suggested I should do this once per year!)


Thanks

Jan 7, 2014 10:56 PM in response to OAFCOK

I just spent some further time clicking around for the answer to my question...above.


When I clicked on the Safari symbol (top left) one of the options was "Empty Cache"...perhaps that's all there is to it????????


Seems too easy after reading the four pages of what some of you folks have been through? *Scratches head*


Though I am apprehensive to empty in case I screw something up. (Not a techie!) And I don't know which version of Safari I have....Macbook is three years old.


Anyone? I would appreciate the assistance.

Jan 7, 2014 11:21 PM in response to OAFCOK

Hi oafcok,


I don't know which version of Safari I have


Menu > Safari > About Safari


My version of Safari is 7.0.1. App Store does not show a Safari update waiting, so this is the latest version (for my Mac).


To clear browsing history etc. Menu > Safari > Reset Safari... then choose what you want to delete. I do this from time to time and nothing bad happens. If I delete everything in Reset, the only thing I have to do afterwards is enter my username on sites such as this, then it remembers me again.


Have a stroll around Menu > Safari > Preferences. For example, I prefer 'Remove history items: After One Day'. If a site is particularly interesting, I save that link in bookmarks or as a text file. Better than having to trawl though a long History.


I am not a techie, so I don't know what is in the cache.


Regards,

Ian.



How do I clear cache in Safari now?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.