Howto: Clear Swap Cache

Recently I’ve wrote a script to calculate the swap usage and triggered the alert when Swap usage hit the certain level.

And I found out the actual memory usage is not using as it is where swap still caching the usage. To clear the swap cache and make the memory usage only, you may turn of swap by selecting the swap drive.

First of all, you need to identify the swap disk. Check the blkid for more information.

blkid

Look at the entry of swap. Assume swap is in sda5.

Turn the swap cache off,

swapoff /dev/sda5

Once it is done, turn on again,

swapon /dev/sda5

How to Clear Temporary Cache for specific domain with IE 8

If you are the web programmer, you surely need to keep clear the Internet Browser cache to understand the actual result of your new amend coding. With IE8, you do not need to always clear cache for all of the domain but you may clear the cache from specific domain only.

By default, IE 8 do come with IE 8 Developer Tool that allow you to specifically clear cache from a particular domain. To enable it, you may select Tools from IE 8 and click on the D
Developer Tools or directly use the shortcut key with F12.

From the Cache Menu, select on “Clear Browser Cache for this Domain…” or use Ctr + D.

For earlier version of IE, you may actually download the add-on from Microsoft site as URL here.