How to Clear Quick Look Cache in Mac OS
Quick Look is the ever-handy feature in Mac OS that allows you to select a file in the file system and get a quick preview of it, whether you’re in the Finder, an Open or Save dialog, or even some apps. Quick Look is a great feature with many abilities on the Mac that makes browsing around the file system much more efficient, but sometimes Quick Look can stop functioning as intended, either showing blank thumbnails and previews or erroneous previews, usually because of an issue with QuickLook cache. Typically these type of Quick Look issues can be resolved by simply clearing out and wiping the Quick Look cache on a Mac.
Additionally, those same Quick Look caches and thumbnail previews can pose some data leaking risk which is still an issue, so some high-security and privacy minded individuals may appreciate manually emptying their Quick Look caches from a Mac if they’re concerned about it.
This is probably obvious, but if you don’t have a particular reason to clear your Quick Look cache, there is no benefit in doing so.
How to Empty Quick Look Cache from MacOS
This process of clearing the Quick Look cache data is as follows:
- Open the “Terminal” application, found in /Applications/Utilities/ on the Mac
- Enter the following command syntax exactly:
qlmanage -r cache
- Hit Return to clear the Quick Look caches
The command when executed properly looks like the following, with a simple report:
$ qlmanage -r cache
qlmanage: call reset on cache
Fittingly, the QuickLook thumbnail cache resets quickly.
The size of the Quick Look cache will vary depending on a particular Mac, the files contained on the drive, individual Quick Look usage, and other specifics that will vary from user to user. For example, I had a 78mb thumbnails.data cache file from Quick Look and using ‘qlmanage -r cache’ dumped that entire cache file to reset it at zero bytes. Of course, using Quick Look again will start to generate a new cache.
You can disable Quick Look cache if you really want to with ‘qlmanage -r disablecache’ but that’s not recommended for most Mac users.
In case you were wondering, the qlmanage tool lets you use Quick Look from the command line and can do much more than just reset and disable Quick Look cache.
Where Quick Look Cache is Located in Mac OS
If you’re wondering where Quick Look cache files are stored, they are located in the following directory:
You can open that directory in the Finder rather easily by issuing the following command:
This will open the “com.apple.QuickLook.thumbnailcache” directory in a new Finder window on the Mac:
More broadly, $TMPDIR is the primary Mac temporary directory at the system level and found somewhere in a maze of other gibberish folders found within /private/var/folders/. If you want to see exactly where the Mac temp directory is you can follow these instructions.
Just remember to never attempt to manually edit or modify files in the /private/var/folders/ directory, as it can cause problems with the Mac operating system. If you want to clear out the temporary folders and files, simply rebooting the Mac is often sufficient to do so. And if you’re on a cleaning binge you can also clear user logs, delete Mac apps to free up disk space, find large files with search parameters, or use a tool like OmniDiskSweeper to help track down big files and other stuff to trash. And if you’re an advanced user, you can try some other more advanced methods at recovering disk space on a Mac, but those are far beyond the scope of what most Mac users should be attempting.
If you know of any other helpful tricks or methods for managing and clearing QuickLook cache on a Mac, share them in the comments below.