Skip to content
Tutorial: How to Clear the Magento 1 Cache
Magento 1 · Updated on · 4 min read

Tutorial: How to Clear the Magento 1 Cache

Today we look at how to clear the Magento 1 cache:
First of all, you need to log in to the website’s admin area, usually reachable at the URL: https://www.mysite.com/admin, entering your username and password.

Once inside, go to the System menu (Sistema if the Italian translation package is installed). At the bottom of the dropdown there is the Cache Management item (Gestione della Cache in Italian).

Magento 1 admin System menu with the Cache Management item

After clicking, we get a screen like this:

Magento 1 Cache Management with the blocks cache invalidated

Here we can see that the blocks cache is invalidated, which means, for example, that a product was saved and the information on the front end will not be visible until we clear it manually.
In the grid shown in the image above, on the left there are checkboxes that we need to tick to choose which cache to refresh / disable or enable if it is disabled.
To run the operation, choose the Action from the dropdown menu at the top right of the grid, then click Submit.

Once the operation is complete, a message similar to this should appear:

Confirmation message after refreshing the caches in Magento 1

The other ways to clear the caches are:

  • use the Flush Magento Cache button
  • clear the var/cache folder, located in the project root, via ftp/sftp/ssh.

If we have created a new attribute or modified some database table through a script, we will need to use the Flush Cache Storage button, because any collections already loaded will be in cache and we won’t see the new data.

There is also the Additional Cache Management section, covering the image cache and the image swatches cache (they may not be used, since it depends on how the theme was written or perhaps because only simple products are used). Then there is the js/css cache management (this one may also be unused: if you use a CDN, for example, it may make no sense to have Magento merge the js/css).

The screens shown are the basic Magento ones; any installed modules may add further caches, such as the Full Page Cache (FPC) or category filters (Layered Navigation).

You might also like