Numerous folders your Mac stores its cache files in help macOS speed up its operations: starting from the minimal wait time for the apps and websites to launch and all the way through to how CPU accesses memory on Mac for the whole system to run faster.
On the other hand, with time, cache files pile up, get outdated, and often end up slowing things down. Should your Mac clear caches then? Or is it wiser not to delete cached files from Mac?
In this article we’ll explain what is cache on Mac, how different types of caches vary from each other, as well how to clear cache on MacBook manually and using dedicated apps to help speed things up.
What happened? |
What to do |
Browser showing outdated content |
Clear browser cache via Finder > Go > Go to Folder > Type ~/Library/Caches > Press Return > Select cache files to delete. |
Manually deleting browser cache takes too long |
Use CleanMyMac X to remove cache from all browsers at once. Use the Privacy module to select browsers to delete cache from. |
System cache is causing bugs in Mac operations |
Manually move or delete the system cache with Disk Drill. |
DNS cache is outdated or corrupt |
Flush DNS Cache via CleanMyMac X > Maintenance > Flush DNS Cache. |
Navigating programs to clear browser cache takes too long |
Press Shift + Command + G to launch Go to Folder search in Finder > Press Command + Option + E to clear Safari cache. |
App caches slowing down Mac |
Finder > Go > Go to Folder > Type ~/Library/Caches > Enter > Select cache files > Send to Trash > Empty Trash. |
One click to clear cache & boost your Mac's speed
Get a huge set of top apps for keeping your Mac in shape. Best utilities in one pack, give it a go!
Try free Security-testedA cache is where your Mac stores temporary files that it needs so that it can quickly reopen the same apps, websites, or macOS utilities in the future. In other words, cache files spare your system the need to download or look for the data in its original location every time you visit a webpage or want to run an app.
This trick helps speed up various processes, cuts your system’s response time, and makes the overall performance of your Mac as fast and efficient as we know it.
There are three main types of cache files your Mac keeps to streamline its operations:
Now that we have discussed how cache files help your Mac run its operations, you might be wondering why clear cache on Mac. The answer is that with time, cached data might become corrupted, get outdated, or simply start taking up too much space on your Mac. So you’d be wise to now and again delete caches on your Mac.
The main reasons you’d want to consider clearing cache on MacBook Air revolve around the following:
To clear outdated cache files from your browser, prepare yourself for a job that’s simple, yet tedious — considering the amount of files you’d need to go through.
To get to those files and delete browser cache on Mac:
Your other option is a powerful Mac cache cleaner that can delete browser caches for you in a couple of clicks — CleanMyMac X.
CleanMyMac X can remove caches from all your browsers on Mac without you having to dive into the depth of your Mac’s cache library and sorting through hundreds of files manually.
To delete browser cache with CleanMyMac X:
On top of that, this versatile cleaner offers an impressive toolset of instruments for freeing up RAM, running maintenance scripts, managing login items, launch agents, hung applications, and much more. All to boost your Mac’s performance in a matter of minutes.
You can also learn to clear the cache for a specific web browser on Mac manually. Because no matter what web browser you use, they all have their own cache that can be managed from the settings in the browser itself.
To clear Safari cache using its own menu tools:
If your go-to browser is Chrome, here are the steps you need to follow to clear Chrome cache:
To clear Firefox cache do the following:
DNS cache records the information about previous DNS (Domain Name System) lookups that macOS stores locally in order to save time on converting the URLs of the sites you’ve visited in the past to their IP addresses.
Most of the time DNS cache helps us get to the websites we’re looking for faster. It’s when the cached information becomes outdated or corrupt using previously stored data might lead to connection issues
You can easily fix this by flushing the DNS cache and making your computer request fresh DNS information. It’s easiest to do with CleanMyMac X: simply open its Maintenance module and choose Flush DNS Cache.
To learn more about DNS cache, consult our dedicated article on how to flush DNS cache.
If you prefer using a keyboard to get things done on your Mac, you’ll be pleased to know that there are a number of system shortcuts you can use to clean MacBook from cache. Try:
Or use Keysmith to create your own hot key combo to automate the Mac empty cache task (or any other flow you perform often).
With Keysmith you can record any workflow and assign it a custom shortcut, following these simple steps:
If you’re wondering which cache can I delete macOS would highly advise that you leave the system cache untouched.
System cache files are vital for the daily operations and normal functioning of your Mac and generally don’t take up much space. So there aren’t really any urgent reasons to clear them — unless you’re trying to fix a bug by doing it. And even then, be very cautious not to delete anything important.
Instead of rushing to clear system caches as a means of troubleshooting macOS problems every time your Mac slows down or freezes, we suggest trying iStat Menus and App Tamer. They both offer an easy way to keep an eye on your Mac’s real-time performance indicators and offer clues about what needs to be fixed, quit, paused, or reconfigured to solve the issue.
iStat Menus is a comprehensive system data collector that provides vital live info on your Mac’s performance. All you need to do is pick the stats important to you, and the app menu bar icon will present you with all the data. (Don’t forget to set up notifications to spot any issues early on.)
Or choose App Tamer to monitor and troubleshoot cases when your apps hang or use CPU in a way that it slows down your Mac’s performance.
App Tamer monitors activity of all the apps that are currently in use or are running in the background on your Mac. It automatically spots idle apps that consume too much CPU and notifies you, using special menu bar icon color indicators. You then have a choice to slow the spotted app down, quit, or configure how much CPU it’s allowed to use when idle.
Should you decide to pursue clearing system cache files anyways, it’s better to be on the safe side with a smart Mac cache cleaner, such as CleanMyMac X, that stays away from system files that shouldn’t be deleted and can quickly clear any caches from your Mac without endangering its performance.
To clear system cache with CleanMyMac X:
To manually clear system cache, use clear cache Mac Terminal command (type sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say cache flushed in the Terminal window and hit Enter).
If you are not a big fan of using Terminal, you can also try Disk Drill hard-drive space analyzer to find system cache files in macOS.
Disk Drill quickly locates your Mac’s system cache files, letting you delete or move them to an outside location directly from the app.
Disk Drill is also praised for its data recovery, backup, and protection powers. So definitely give it a try when taking care of your system cache backups before you clear system and user caches.
All the apps we use on Mac create their own caches where they keep the data that helps load things faster every time the app’s opened. If you don’t clear app caches they tend to pile up, create clutter, and slow down your Mac instead of speeding its operations up.
Deciding to clear app caches is also a sound idea when you experience issues with an app not working properly — this way you can check if the reason might be in a corrupted cache file.
On the other hand, it’s also important to note that in some cases developers use app cache to store files crucial to the normal functioning of the app. So be extra careful always backing up cache folders before erasing their content. (If your app works fine after you delete caches, erase the backup).
To clear app caches on Mac manually:
If you’d rather avoid going through all the files in your app cache manually, opt for the way that makes clearing cache on MacBook Air a one-minute job. Open CleanMyMac X and safely clear app caches in a few clicks. (Choose System Junk ➙ Scan ➙ Clean.)
It’s safe to delete cached files from Mac as long as you keep in mind a few simple recommendations:
Clearing cache on MacBook Air is a good practice for reclaiming storage space and clearing your caches from the data associated with the apps and websites you no longer use. Always delete browser caches first and clear system and user caches for one of the two reasons only — troubleshooting a problem or running low on disk space.
When you delete cached files from Mac it can affect your system both positively (reclaimed storage, fixed connectivity issues, refreshed web media files, etc.) and negatively (lost vital system or app files). To avoid the latter, delete caches you’re 100% sure about or use an expert cache cleaner app.
If you want to manually clear system cache or other types of cache files on Mac, you can find them by typing ~/Library/Caches in the Finder’s Go to Folder window.
If you’ve never cleaned out your cache, you may have gigabytes of unnecessary files taking up space on your Mac. Use Finder to go through your cache files manually, delete with macOS clear cache Terminal command, or go for CleanMyMac X to quickly clear any caches without the risk of accidentally removing any essential files.
Always remember to back up your files before you clear system and user caches, as they may contain files that are crucial for the functioning of your Mac. Or better yet, install iStat Menus and App Tamer to monitor your system vitals in real time and get notified about potential troubles early — so that you don’t have to resort to clearing cache on MacBook Air whenever you need to troubleshoot issues with your macOS or apps.
If you like things happening efficiently, choose to clean MacBook from cache regularly, and try Keysmith to create custom quick action shortcuts for your workflows on Mac.
To become proficient at clearing cache on MacBook Air, use a chance to try CleanMyMac X, iStat Menus, App Tamer, Disk Drill, and KeySmith for free with the seven-day trial of Setapp, a platform of best-in-class iOS and macOS productivity apps. Learn how to delete cached files from Mac and check out more than 240 new options to boost your performance.
以上是如何在Mac上清除緩存的詳細內容。更多資訊請關注PHP中文網其他相關文章!