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

How do I clear the Cache in Yosemite?

First the specs: Running iMac 27inch Mid 2010, Yosemite V10.10, 2,93 GHz Core i7, 16 GB 1333 MHz DDR3 RAM


I have 16GB of Ram and it seems that after reboot, or a prolonged period of time, that the Cache continues to build until it's really slowing down the Computer.


How do I clear this and get the most from the 16GB of RAM and speed up the computer?


Thanks so much!

SC

iMac (27-inch Mid 2010), OS X Mavericks (10.9.5)

Posted on Nov 10, 2014 11:20 AM

Reply
30 replies

May 13, 2015 10:38 AM in response to Kappy

Thank you so much, Kappy. I look for the user level to help me know who is best informed and experienced at answering the problems. Your level 10 is like a Good Housekeeping Seal of Approval. ; ) Thank you also to Allan Eckart, Level 8. Thank you for your patience with the lower levels - sometimes a bit of saber-rattling can keep you on your game. Or, just be plain annoying.

Thanks again.

May 13, 2015 11:24 AM in response to Gaye M

Just to add. If a person wants to delete Safari's cache for whatever reason, there's no need to use a lengthy script, Terminal command, or any other tool to do it. Safari provides that itself.


Open Safari's preferences and click on the Advanced tab. Turn on the bottom check box to "Show Developer menu in menu bar". Now there will be additional items in the main menu bar. Choose Develop > Empty Caches, or press Command+Option+E to do the same thing. Done.

Aug 1, 2015 7:28 AM in response to Allan Eckert

Now to the question at hand. With the specs he has posted:


_ iMac 27inch-Mid 2010 _ Yosemite V10.10 _ 2.93 Ghz Core i7_ 16 GB 1333 MHz DDR3 RAM _


Unless you are running the entire Final Cut Studio, Adobe CS, and editing RAW uncompressed images and photos, in my humble opinion might I add, most likely is not an issue with the cache, yet it is quite possible. And will not hurt to look into the finer grains of sand about whats going on behind that beautiful 27in screen. Now that may or may not be the first route I would peek into, but just for fun, look into flushing your DNS -- or Domain Name System -- which entails the MDSN and UDNS - Multicast and Unicast. The MDSN is a bit more like jumping into the rabbit hole with Alice versus horseback riding in Fargo. Sorry to cut out in the middle, but I will leave some links. Ultimately, I was leading towards malicious software, otherwise known as malware, which, depending on the script, will do very bad things to your babies internal architecture.



Moz has the best docs on the net; hands down. Travel through, fail and fail some more and the reward will be glorious.


https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-caused-malware


<Edited By Host>

Nov 1, 2015 12:28 PM in response to MortenJamesCarlsen

I agree that clearing the cache is very important. In particular, there are, and I've had, third party software that has "hijacked" the computer even with good anti-virus software and even after running MalwareBytes for MAC.


I'd like to know if there are any programs that analyze the cache for this very problem? I was told that El Capitan solves this problem. Anyone know? I also think this is happening because we are networked through a WINDOWS server. Just saying.

Nov 1, 2015 1:44 PM in response to Gregg1954

It's just STUPID the have to get a text message to reply here


You can clear the cache with this script:



--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==========*)

How do I clear the Cache in Yosemite?

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