目录
What is cache?
What happens when you clear cached data?
How to delete browser cache
Clear Safari caches step-by-step
Chrome cache-clearing tutorial
How to delete cache manually in Firefox
Flush DNS cache on Mac
How to clear cache on MacBook via shortcuts
Delete system caches
How to empty application caches
FAQ
Is it safe to delete cache files on Mac?
Should you clear cache on Mac?
Will clearing cache affect anything?
How do I find caches on Mac?
How to clear cache on MacBook and help the system run smoothly?
首页 系统教程 苹果 如何在Mac上清除缓存

如何在Mac上清除缓存

Mar 22, 2025 am 09:15 AM

如何在Mac上清除缓存

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.

如何在Mac上清除缓存

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-tested

What is cache?

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

  • Browser cache contains the data that gets downloaded to your Mac when you visit a website (may include cookies, images, videos, and elements of HTML, CSS, or JavaScript that your browser uses to display websites)
  • Application cache (sometimes also referred to as user cache) stores data associated with all the apps you use on your Mac to quickly reload images, search history, videos, etc.
  • System cache is macOS’s own service files that allow CPU quick access to RAM, making it possible for system services to run faster without the need to load data from the main memory bit by bit

What happens when you clear cached data?

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:

  1. Disk space: Clear cached data and you’ll be able to get rid of megabytes of outdated files from the websites you’ve visited once and you may not ever return to or apps you’ve removed by dragging to Trash (did you know that their cache files continue taking up space on your disk for absolutely no reason?)
  2. Troubleshooting: With time app cache files might become corrupted and cause trouble, affecting normal performance of your app — delete caches and fix the problem
  3. Privacy: Sometimes cached browser and app data contains personal information you don’t want others to get their hands on (such as filled out web forms, your browsing history, passwords, etc.)
  4. Web updates: If you don’t delete browser cache for some time, it may load outdated content — clear caches of browsers you use most often and make sure that what you see is the latest version of your favorite sites

How to delete browser cache

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:

  1. Go to the top Finder menu ➙ Go ➙ Go to Folder
  2. Type ~/Library/Caches and press Return
  3. Find the folder with your browser’s name on it, select the cache files you want to clear and delete them

如何在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:

  1. Download and open CleanMyMac X
  2. Choose Privacy from the panel on the left ➙ Scan
  3. Select all the browsers you’d like to clear caches for ➙ Remove

如何在Mac上清除缓存

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.

Clear Safari caches step-by-step

To clear Safari cache using its own menu tools:

  1. Launch Safari
  2. Click on Safari in the browser’s top menu bar ➙ Preferences ➙ Advanced
  3. Check the box next to “Show Develop menu in menu bar”
  4. Go to Develop in the Safari top menu ➙ Empty Caches

    如何在Mac上清除缓存

Chrome cache-clearing tutorial

If your go-to browser is Chrome, here are the steps you need to follow to clear Chrome cache:

  1. Launch Chrome
  2. Click on the three dots drop-down menu in the top right ➙ Settings
  3. Choose “Privacy and security” on the left ➙ Clear browsing data
  4. Choose the period of time you’d like to clear cached data for in the “Time range” drop-down menu
  5. Check the types of data you want to be cleared ➙ Clear data

如何在Mac上清除缓存

How to delete cache manually in Firefox

To clear Firefox cache do the following:

  1. Launch Firefox
  2. Choose History from the Firefox top menu bar ➙ Clear Recent History
  3. Decide on the period of time you want to clear your browsing data for under the “Time range to clear”
  4. Check the boxes for the kinds of data you’d like to be cleared ➙ Clear Now

    如何在Mac上清除缓存

Flush DNS cache on Mac

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.

如何在Mac上清除缓存

To learn more about DNS cache, consult our dedicated article on how to flush DNS cache.

How to clear cache on MacBook via shortcuts

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:

  • Shift + Command + G to launch Go to Folder search window in Finder that takes you straight to the cache library on your Mac
  • Command + Option + E to clear Safari cache
  • Command + Shift + Delete to open the Clear Browsing Data options in Chrome or bring up Clear Recent History window in Firefox

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:

  1. Launch Keysmith
  2. Press a plus sign button in the lower left to create a new task
  3. Press Record in the upper right and perform the steps, necessary to delete cached files from Mac (or any other task you have at hand) ➙ Stop Recording
  4. Click on Untitled and give your task a name
  5. Click on Set Hotkey and type the keys you’d like to link with this task (don’t worry about forgetting the combination — you’ll be able to find it in Keysmith’s pop-up search bar by the name of your task at any time)

    如何在Mac上清除缓存

Delete system caches

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.)

如何在Mac上清除缓存

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.

如何在Mac上清除缓存

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:

  1. Open CleanMyMac X
  2. Choose System Junk from the Cleanup module on the left ➙ Scan
  3. Click on Review Details if you’d like to see the breakdown by the type of cache files detected ➙ Clean

    如何在Mac上清除缓存

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.

如何在Mac上清除缓存

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.

How to empty application 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:

  1. Go to the top Finder menu ➙ Go ➙ Go to Folder
  2. Type ~/Library/Caches ➙ Enter

    如何在Mac上清除缓存

  3. Find the cache folders for all of your apps, select the cache files inside, and send them to Trash
  4. Empty Trash to delete the files

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.)

如何在Mac上清除缓存

FAQ

Is it safe to delete cache files on Mac?

It’s safe to delete cached files from Mac as long as you keep in mind a few simple recommendations:

  • Quit apps and all running processes before you clear their cache
  • Make sure you first back up cache folders you’re about to empty when attempting to clear system and user caches
  • Regularly delete browser caches on all the browsers you use
  • If in any doubt about Mac empty cache procedures or worrying about deleting the wrong files from your system, use a dedicated Mac cache cleaner tool — such as CleanMyMac X

Should you clear cache on Mac?

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.

Will clearing cache affect anything?

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.

How do I find caches on Mac?

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.

How to clear cache on MacBook and help the system run smoothly?

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中文网其他相关文章!

本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热工具

记事本++7.3.1

记事本++7.3.1

好用且免费的代码编辑器

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)

Apple Watch上的Spotify:如何在2025年使用它 Apple Watch上的Spotify:如何在2025年使用它 Apr 04, 2025 am 09:55 AM

在苹果设备的互联生态系统加持下,管理和同步你的苹果设备变得轻而易举。用Apple Watch解锁Mac?简单!(如果你还没设置这个解锁方式,真的应该试试,非常省时)。不用iPhone也能用Apple Watch支付?苹果轻松搞定!今天我们将重点介绍如何将Spotify播放列表下载到Apple Watch并在没有iPhone的情况下播放。剧透:这是可行的。 如何在Apple Watch上使用Spotify:快速概述 让我们直接深入探讨关键问题及其解决方案。如果这个表格对您有帮助,那就太好了!如果您

如何将短信从iPhone导出到PDF 如何将短信从iPhone导出到PDF Apr 02, 2025 am 09:06 AM

如何摆脱'屏幕正在观察”错误 如何摆脱'屏幕正在观察”错误 Apr 05, 2025 am 10:19 AM

看到“您的屏幕正在被监控”的消息时,您首先想到的可能是有人在入侵您的电脑。但情况并非总是如此。让我们尝试找出是否有任何需要您担心的问题。 保护您的Mac 使用Setapp,您无需担心选择保护电脑的工具。您可以快速在Setapp上组建您自己的隐私和安全软件套件。 免费试用 安全测试“您的屏幕正在被监控”是什么意思? 出现“您的屏幕正在被监控”的Mac锁定屏幕消息,原因有很多。 您正在与他人共享屏幕 您正在录制屏幕 您正在使用AirPlay 您正在使用一些试图访问您屏幕的应用程序 您的电脑感染了恶

电子邮件不同步?如何在Mac上刷新邮件应用程序 电子邮件不同步?如何在Mac上刷新邮件应用程序 Apr 04, 2025 am 09:45 AM

Mac邮件同步失败?快速解决方法! 许多Mac用户依赖于自带的Mail应用,因为它简单方便。但即使是可靠的软件也会出现问题。最常见的问题之一是Mail无法同步,导致最近的邮件无法显示。 本文将指导您解决邮件同步问题,并提供一些实用技巧来预防此类问题。 如何刷新Mac上的Mail应用 操作步骤 点击信封图标 打开Mail应用 > 视图 > 显示标签栏 > 点击信封图标刷新。 使用快捷键或菜单选项 按下 Shift Command N。或打开Mail应用

如何从Mac卸载蜂蜜 如何从Mac卸载蜂蜜 Apr 04, 2025 am 10:13 AM

如何仅在Mac上的Dock中显示活动应用 如何仅在Mac上的Dock中显示活动应用 Apr 09, 2025 am 11:44 AM

Mac 坞栏优化指南:仅显示正在运行的应用程序 Mac 的坞栏是系统核心,您可以从中启动访达、废纸篓、最近使用的应用、活跃应用和书签应用,甚至可以添加“文稿”和“下载”等文件夹。默认情况下,Mac 坞栏会显示十几个苹果自带的应用程序。大多数用户还会添加更多应用,却很少删除任何应用,导致坞栏杂乱无章,难以有效使用。 本文将介绍几种方法,帮助您整理和清理 Mac 坞栏,只需几分钟即可完成。 方法一:手动整理坞栏 您可以手动移除未使用的应用程序,只保留常用的应用程序。 移除应用程序: 右键点击应用程

Mac键盘音量按钮无法正常工作:这是如何修复这些键 Mac键盘音量按钮无法正常工作:这是如何修复这些键 Apr 02, 2025 am 09:33 AM

Mac音量键失灵?快速修复指南! Mac音量键无法正常工作?无论是欣赏音乐、观看电影还是进行重要视频通话,这都非常令人沮丧。别担心,本文提供有效解决方案,助您快速恢复音频控制。 Mac音量键失灵的原因: 音量键失灵通常并非硬件故障,而是软件设置或故障导致。常见原因包括: 音频驱动程序故障 键盘设置更改 外接扬声器控制 其他软件干扰 大部分问题都能轻松解决。 修复Mac键盘音量键失灵的方法: 以下方法将帮助您解决音量键问题: 检查键盘设置: 音量键失灵可能与键盘设置有关。 点击苹果菜单

See all articles