Web browsers, native apps, third-party programs, and system services always cache files on your Mac. These caches consume space, but they also increase speed.
Cached data is also deleted and updated regularly by the programs and services that create them. Even so, you will still encounter caching crashes, corruption or overload to crashes, slowdowns, and other problems.
How to Clear Cache on Mac
If the website is not loading or working properly, then clearing your browser cache is usually the first thing you have to do to fix the problem. Here’s how to clear the cache for Safari and Google Chrome browsers.
Clear Cache on Mac Chrome
By default, Safari doesn’t show an option that allows you to clear its cache. Proceed as follows:
Step 1. Launch Safari, then open the Safari menu and choose Preferences.
Step 2. Switch to the Advanced tab and check the box next to Show Develop menu in menu bar.
Step 3. Open the Develop menu (you will now see on the menu bar), then select Empty Cache.
Clear Cache on Mac Safari
If you use Chrome instead of Safari, clearing its cache is relatively straightforward.
Step 1. Open a new Chrome tab and press Shift + Command + Delete to display the delete browsing data screen.
Step 2. Select the Cached images and files option, set the time range to All time, and then select Clear data.
Clear DNS Cache on Mac
The DNS (Domain Name Service) cache on your Mac helps the browser locate and connect to a web address quickly. If Safari or Chrome still can’t load the website, the outdated DNS cache may be causing the problem. In that case, deleting it will force your Mac to fetch the most recent DNS data.
Step 1. Press Command + Space to open Spotlight Search. Then, type Terminal and press Enter.
Step 2. Type the following command in the Terminal window and press Enter:
sudo killall -HUP mDNSResponder
Step 3. Enter your administrator password and press Enter to clear the DNS cache.
Clear Application Cache on Mac
Clearing the app cache on your Mac can fix problems related to the program and native system components (Mail, Messages, Maps, etc.). While this is safe, it’s a good idea to make a backup of your Mac before proceeding.
Step 1. Quit all open applications. Then open Finder and press Command + Shift + G to bring up the Go to Folder box.
Step 2. Type ~ / Library / Caches (don’t forget the tilde at the beginning) and click Go to open the app cache.
~ / Library / Caches
Step 3. Press Command + A to select all files and folders, then right-click and choose Move to Trash to delete them all.
Step 4. Restart your computer, then right-click on the Trash icon in the dock and select Empty Trash to free up space associated with the deleted files.
Clear System Cache on Mac
Clearing the application cache will remove many files associated with native apps and system components. If you still have problems, you can delete additional operating system-related files by going to two locations, as shown below. Don’t forget to make a backup of your Mac (if you haven’t already) before proceeding.
Step 1. Open Finder and press Shift + Command + G.
Step 2. Type / Library / Caches (without the tilde at the beginning) in the Go to Folder box.
/ Library / Caches
Step 3. Press Command + A to select all files. Then right-click and choose Move to Trash.
Step 4. Enter your administrator password and click OK to delete the entries. If your Mac is preventing you from deleting certain files or folders, leave them as is.
Step 5. Repeat steps 1 through 4 but instead use the /System/Library/Caches directory in step 2. You can delete all the items in this folder except the subdirectory where name com.apple.kext.caches.
Step 6. Restart your Mac in Safe Mode. This helps to reset various system-related buffers that you cannot manually delete. To enter Safe Mode in macOS, restart your Mac, then hold down the Shift key right after the boot bell. When the Apple logo appears, release the key.
After your Mac boots into Safe Mode, reboot normally. If everything looks good, you can empty the trash.
You don’t need to delete cached files as often in the hopes of optimizing your Mac. It would help if you only cleared your browser caches, apps, and system caches as a means of troubleshooting unwanted browser problems.
I hope this article can help you quickly clear cache on Mac, if you have any questions about the article, do not get used to leaving your comments below.