During the course of setting up, developing on or making significant changes to a Magento installation, it is necessary to refresh Magento's cache. This is pretty straight forward operation, but sometimes simple things can be overlooked. Here is a quick step by step guide to doing this.

There are two parts to this task. First is the Administration Cache Refresh. Second is the Cache File Removal.

Administration Cache Refresh

Login to the Administration Panel

Go to the System menu

You will find the Cache Management here. (before version 1.4)

Once here, select all of the options unless you want a more narrow refresh. Then choose "Refresh" from the drop down menu.

Then Click on the "Save Cache Settings" button.

If you are using 1.4 or higher, you will find yourself here:

Select the "Flush Magento Cache" button to flush the cache.

Of course you may want to disable or enable cache, and that is done on this page is well.

Cache File Removal

Sometimes you will have made dramatic changes to the theme or CMS of your Magento store. In these cases, it is safer to also remove the cached files. The cache files are located in this directory:

[Magento Root]/var/cache/

Or in Magento 1.4 or higher you can just click the "Flush Cache Storage" button in Cache Management.

At the command line, browse to this directory, and issue "rm -rf *" to remove all of the cache sub-directories. You only want to do this after refreshing all of the cache from the Administration Menu.

Or in Magento 1.4 or higher you can just click the "Flush Cache Storage" button in Cache Management.

Either way the caution is the same. Flushing the storage is more broad and sweeping that just the cache, and there may be data there that is more than the normal cache for sessions and rendering pages. So the normal Flush Cache is generally sufficient and I only Flush Cache Storage when something is really not working.

[ad#Magento Books]