scottfrommableton

Q: 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

Close

Q: How do I clear the Cache in Yosemite?

  • All replies
  • Helpful answers

Previous Page 2
  • by Allan Eckert,

    Allan Eckert Allan Eckert Feb 1, 2015 9:54 AM in response to terryzx
    Level 9 (53,640 points)
    Desktops
    Feb 1, 2015 9:54 AM in response to terryzx

    Why?

     

    It is usually a waste of time.

  • by terryzx,

    terryzx terryzx Feb 1, 2015 10:09 AM in response to Allan Eckert
    Level 1 (0 points)
    Feb 1, 2015 10:09 AM in response to Allan Eckert

    Many times the cache can become corrupted and give Safari problems. I occasionally am unable to get Safari to open at all but cleaning the cache fixes that.

  • by Allan Eckert,

    Allan Eckert Allan Eckert Feb 1, 2015 10:20 AM in response to terryzx
    Level 9 (53,640 points)
    Desktops
    Feb 1, 2015 10:20 AM in response to terryzx

    While it is true that cache can be corrupted, the last time it happen on any of my Macs was so long I have actually forgotten exactly when it was. It was a bunch of years ago when it happened.

  • by terryzx,

    terryzx terryzx Feb 1, 2015 10:43 AM in response to Allan Eckert
    Level 1 (0 points)
    Feb 1, 2015 10:43 AM in response to Allan Eckert

    You are very luck. This is not the case for EVERYONE

  • by Allan Eckert,

    Allan Eckert Allan Eckert Feb 1, 2015 10:47 AM in response to terryzx
    Level 9 (53,640 points)
    Desktops
    Feb 1, 2015 10:47 AM in response to terryzx

    So far the users I have helped who were having to clear cache with any kind frequency shorter then annually had other problems with their Mac that was causing the cache corruption. Frequent cache corruption is usually the symptom of other problems. One should troubleshoot your Mac to find the actual cause and fix it.

  • by terryzx,

    terryzx terryzx Feb 1, 2015 11:13 AM in response to Allan Eckert
    Level 1 (0 points)
    Feb 1, 2015 11:13 AM in response to Allan Eckert

    Nice IF they can locate the problem. Many times it is hidden and/or the user might not have the expertise to do that.

     

    I am done with this thread and thanx for your input.

  • by Gaye M,

    Gaye M Gaye M May 13, 2015 10:38 AM in response to Kappy
    Level 1 (4 points)
    Mac OS X
    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.

  • by Kurt Lang,

    Kurt Lang Kurt Lang May 13, 2015 11:24 AM in response to Gaye M
    Level 8 (37,837 points)
    Mac OS X
    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.

  • by lpgfhqn,

    lpgfhqn lpgfhqn Aug 1, 2015 7:28 AM in response to Allan Eckert
    Level 1 (0 points)
    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>

  • by StinkweedPayton,

    StinkweedPayton StinkweedPayton Oct 17, 2015 3:17 AM in response to Kappy
    Level 1 (1 points)
    Mac OS X
    Oct 17, 2015 3:17 AM in response to Kappy

    Wow! Thanks Kappy. I've been in and out of the Mac world since I used my first SE 30 back in '91 but I have never really understood the fundamentals of how these things actually work. After reading your blurb on RAM my jaw hit the floor and I smacked myself upside the head. I finally got it...lol Thanks again.

  • by Gregg1954,

    Gregg1954 Gregg1954 Nov 1, 2015 12:28 PM in response to MortenJamesCarlsen
    Level 1 (0 points)
    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.

  • by Allan Eckert,

    Allan Eckert Allan Eckert Nov 1, 2015 12:38 PM in response to Gregg1954
    Level 9 (53,640 points)
    Desktops
    Nov 1, 2015 12:38 PM in response to Gregg1954

    "good anti-virus software"

     

    I find that statement to be a bit of an oxymoron since I have yet find anything I would classify as good in the category of AV software. I see it all as worthless scams that do nothing useful.

  • by terryzx,

    terryzx terryzx Nov 1, 2015 1:44 PM in response to Gregg1954
    Level 1 (0 points)
    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

      delete TargetFile

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

Previous Page 2