Berichten

OSX lion and Mountain Lion – flush cache the hard way….

Until now I used ‘dscacheutil -flushcache’ to flush my cache.. When one develops sites the cache is the time consuming factor in this flow. However.. it did not work anymore. Although, not fast enough for me, so I was looking and found the following command on the apple site itself (rtfm ? ) :

 sudo killall -HUP mDNSResponder

This one worked like a charm.. Please update your development hours with this 1 command.

Clear DNS cache OSX

OSX has an extensive cache mechanism… But for developers it can be quite a pain.

It is actually easy to bypass. Open terminal and enter the command:

sudo su [type in your mac pass] dscacheutil -flushcache

That’s it. Keep remembering, close your applications by using Cmd+Q……