How to Clear Cache on a Laptop: What It Does and How to Do It Right
Clearing your cache sounds like one of those universal tech fixes — and in many cases, it genuinely helps. But "cache" isn't one thing. It refers to several different types of stored data, each living in a different place on your laptop, and each cleared in a different way. Knowing which cache is causing your problem makes the process faster and more effective.
What Cache Actually Is
Cache is temporary data your laptop saves to speed things up. Instead of fetching the same information repeatedly, your system stores a local copy for quick access. That's useful — until it isn't. Old or corrupted cache files can slow performance, cause display errors, or serve outdated content.
There are several distinct cache types on a laptop:
- Browser cache — images, scripts, and page data stored by Chrome, Firefox, Edge, or Safari
- System/OS cache — temporary files Windows or macOS creates during normal operation
- App cache — data stored by individual applications like Spotify, Slack, or Adobe software
- DNS cache — a local record of domain-to-IP address lookups
- RAM cache — memory your OS manages automatically (you don't typically clear this manually)
Each requires a different approach to clear.
How to Clear Browser Cache
This is the most common reason people clear cache — pages loading incorrectly, outdated content, or a browser running sluggishly.
In Chrome:
- Press
Ctrl + Shift + Delete(Windows) orCmd + Shift + Delete(Mac) - Set the time range to All time
- Check Cached images and files
- Click Clear data
In Firefox: Same shortcut — Ctrl + Shift + Delete — then select Cache from the list.
In Edge: Same shortcut, same process as Chrome (Edge is Chromium-based).
In Safari (Mac): Go to Safari → Preferences → Advanced, enable the Develop menu, then choose Develop → Empty Caches.
Clearing browser cache logs you out of most sites and may slow your first page loads briefly — the browser rebuilds its cache as you browse.
How to Clear System Cache on Windows
Windows accumulates temporary files in several locations. Two reliable built-in tools handle most of it.
Disk Cleanup:
- Search for Disk Cleanup in the Start menu
- Select your main drive (usually C:)
- Check Temporary files, Temporary Internet Files, and any other relevant categories
- Click OK → Delete Files
Storage Sense (Windows 10/11): Go to Settings → System → Storage → Storage Sense and either run it manually or configure it to clean up automatically on a schedule.
Temp folders directly: Press Windows + R, type %temp%, and delete the contents of the folder that opens. Repeat with temp (without the %) for the system-level temp folder. Some files will be in use and can't be deleted — skip those.
🗂️ Running these periodically keeps your drive cleaner, but don't expect dramatic speed improvements on modern SSDs. The benefit is more noticeable on older HDDs or heavily loaded systems.
How to Clear System Cache on macOS
macOS manages cache differently. User cache lives in a hidden Library folder.
Manual method:
- Open Finder and press
Cmd + Shift + G - Type
~/Library/Cachesand press Enter - Select folders inside and move them to Trash
- Empty the Trash and restart
Don't delete the folder itself — only the contents. macOS will recreate what it needs.
System-level cache (in /Library/Caches) can also be cleared, but be cautious here. Some of these files support running applications, and deleting the wrong ones can cause temporary issues until they're rebuilt on restart.
How to Clear DNS Cache
A stale DNS cache can cause websites to fail to load even when your internet connection is fine. This is a quick fix.
Windows: Open Command Prompt as administrator and type:
ipconfig /flushdns macOS (Ventura and later): Open Terminal and type:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder You'll need your admin password. No restart required.
How to Clear App Cache
Individual apps store their own cache files. Where those live depends on the app and the OS.
| App | Cache Location (Windows) | Cache Location (macOS) |
|---|---|---|
| Spotify | %appdata%SpotifyStorage | ~/Library/Caches/com.spotify.client |
| Slack | Via Settings → Clear Cache | Via Settings → Clear Cache |
| VS Code | %appdata%CodeCache | ~/Library/Application Support/Code/Cache |
| General apps | %localappdata%[AppName] | ~/Library/Caches/[AppName] |
Many apps also include a built-in cache clear option within their settings menu — check there before digging into file folders manually.
Variables That Affect How Much This Helps
Clearing cache isn't a guaranteed fix for every slowdown. Several factors shape how much difference it makes:
- Storage type — on an older HDD, cache buildup and fragmentation have a more noticeable impact than on an SSD
- Available disk space — systems with under 10–15% free space on the main drive behave differently from those with plenty of headroom
- OS version — Windows 10 vs. Windows 11, or older versions of macOS, handle temp file management differently
- How long since the last cleanup — a laptop that's never been cleaned in three years versus one cleaned monthly will see very different results
- What's actually causing the slowdown — cache is one factor among many; RAM pressure, background processes, malware, or aging hardware may be the real culprit
🔍 On a fairly modern laptop used for standard tasks, clearing browser cache and running Disk Cleanup occasionally is usually sufficient. Power users running many large apps, developers, or people using their laptops for media production accumulate app cache far more aggressively.
A Note on Third-Party Cleaning Tools
Tools like CCleaner or CleanMyMac automate much of this. They're legitimate, but they're not magic — they largely access the same locations you can reach manually. Some include features that go beyond cache (registry cleaners on Windows, for example) where the risk-to-reward tradeoff is debated among tech professionals.
Whether a third-party tool is worth using depends on your comfort level with manual file management, how often you want to maintain your system, and what your laptop is used for day to day. The built-in OS tools are sufficient for most users — but your workflow may suggest otherwise.