Mac OS X,  Mac OS X Server

Clear that QuickLook Cache

Seems like just yesterday that I first wrote about using Apple’s QuickLook from the command line. And yet it’s been eight years: https://krypted.com/mac-security/qlmanage/.

Guess time flies when you’re having fun. One thing that isn’t fun is when all of a sudden QuickLook stops generating previews for objects when you hit that space bar, or just provides a generic preview. I’ve been working with a lot of more resource intensive file types recently, like .stl files and these can clog the system up. Luckily, filling up the cache, or getting corrupted objects in the cache is something Apple planned for and this is cleaned during a reboot as part of standard operating system garbage collection. However, what if I don’t want to reboot any more. That’s where qlmanage comes back into play. Run qlmanage with the -r option and the cache verb and should clear the cache right up.

qlmanage -r cache

This isn’t the kind of thing that should be necessary very often. If it happens a few times then there’s corruption elsewhere that’s causing it.