Sub topic 9
What caches are and why they exist
This chapter assumes you can open Finder and System Settings, know where your home folder and its Library folder are, and have seen the Storage categories. Running a Terminal command is optional here.
The working model
A cache is a stored copy of data that an app or the system can rebuild. It exists to save time. Fetching a web image, decoding a thumbnail, or compiling a shader is slow. Reading a saved result from disk is fast. The app pays the cost once, keeps the result, and reuses it.
The key property is that a cache is disposable. If it vanishes, the app rebuilds it. The cost is a slower first launch or a slower first page load, not lost work. Your documents, photos, and settings are not caches. They cannot be rebuilt.
Where caches live
Caches sit in several places. Knowing which one you are looking at tells you how much risk is involved.
| Location | Owner | Typical contents |
|---|---|---|
| `~/Library/Caches` | Your user account | App caches: thumbnails, web data, downloaded assets |
| `/Library/Caches` | The whole Mac | Shared caches, some managed by the system |
| `/System/Library/Caches` | macOS | Protected system caches. Leave these alone. |
| Inside an app's own folder | One app | Browser caches, editor caches, build output |
Most reclaimable space is in your user folder. You can see its size without changing anything:
du -sh ~/Library/CachesWhy caches grow
Caches usually have no strict size limit, or a generous one. They grow as you use more apps and view more content. Common examples:
- A browser keeps copies of images, scripts, and pages.
- A music or video app keeps streamed or downloaded media for offline playback.
- A photo or design app keeps previews and thumbnails.
- A chat app keeps received images and files.
Some of this is more than a cache. An offline music download is a cache in a technical sense, but removing it means downloading it again, which may not be possible without a network.
Cache versus data
Folders with similar names can hold very different things. The distinction decides what is safe.
| Looks like | Is it a cache? | If you delete it |
|---|---|---|
| `~/Library/Caches/<app>` | Yes, in most cases | App rebuilds it |
| `~/Library/Application Support/<app>` | No | You may lose settings, databases, or saved work |
| `~/Library/Preferences` | No | Apps reset to defaults |
| `~/Library/Mobile Documents` | No | iCloud Drive files may be removed |
A folder inside Caches is usually safe, but not always. Some apps store a local database or an unsynced draft there. Treat the name as a strong hint, not a guarantee.
Common errors
- Expecting a big gain. Clearing caches often frees little, and the space returns as apps rebuild them. Large files and old backups usually matter more.
- Clearing caches to fix every problem. It helps with specific faults, such as a corrupt thumbnail or a stale web page. It does not speed up a healthy Mac, and it can make things slower right after.
- Deleting the whole Library folder or
/Systemcontents. Only the contents of individual app cache folders are candidates. System locations are protected for a reason. - Confusing purgeable space with caches. macOS can automatically free some cached and iCloud-backed data when space is needed. You do not need to remove that yourself.
What comes next
The next chapter covers clearing user caches in ~/Library/Caches step by step, including how to check sizes and back up first. For now, remember the test for any candidate: can the app recreate it without losing anything of yours?
Exercise
You find ~/Library/Application Support/Notes-App at 4 GB and ~/Library/Caches/com.example.Notes-App at 600 MB. Which one is a reasonable candidate for clearing, and why? What should you do first?
Show answer
The folder in ~/Library/Caches is the candidate, because apps normally rebuild cache contents. Application Support usually holds the app's real data, such as databases and settings, so deleting it could lose work. Before clearing, quit the app, and keep a current backup in case that cache folder held something unusual.
Exercise
Why can clearing a cache make an app feel slower at first, even though it frees space?
Show answer
The cache existed to avoid repeating slow work. After it is cleared, the app must fetch or compute the data again, so the first use is slower until the cache fills.