How to Clear Magento Cache

How to Clear Magento Cache

10 min read

Send to you:

If you run a store on Magento, you know that page caching helps to increase the speed of Magento based website. Below we explain how to clear cache in your Magento store from admin or command line.

How to Clear Magento Cache

Step 1: Login to your Magento Admin Panel
Step 2: Go to System >> Cache Management

Magento Admin - Cache Management Menu

Step 3: Next, you need to identify what cache type that you want to refresh. Each cache type has description, you can read it before deciding which one you need to enable.

Cache Management Menu - Enable Cache

Step 4: In the next step, in order to clear cache, please choose the types of Cache that you have enabled >> Refresh >> Submit

“Flush Magento Cache” help to remove all the items from the cache that have Magento tag.

“Flush Cache Storage” removes all the items from Cache both those with Magento tag and those without it.

Let’s move on to the small guide on how to clear cache from the command line.

How to Clear Magento 2 Cache from Command Line

To flush Magento 2 cache:

  1. Go to Magento root directory
  2. Type: php bin/magento cache:clean and php bin/magento cache:flush

php bin/magento cache:flush

Removes all items in the default Magento cache (var/cache) and the var/full_page cache that have a Magento tag.

php bin/magento cache:clean

This command removes all items in the cache. This is the equivalent of deleting the entire contents of the cache folder on the server. If your system uses an alternate cache location, any cached files used by other applications will be removed.

If you are looking for the extensions to have Magento 2 full page cache and control your website performance, you can check our list of the Top 3 Magento Full Page Cache Extensions.

4.5/5.0

Article rating (11 Reviews)

Do you find this article useful? Please, let us know your opinion and rate the post!

  • Not bad
  • Good
  • Very Good
  • Great
  • Awesome