How To Clear Magento 2 Cache

When doing any updates or changes on your Magento 2 system the cache needs to be refreshed. Therefore, you need to do this after every system update or change. In this post, I will guide you How To Clear Magento 2 Cache.

What is a cache?

A cache is a specific area located in your store’s server host. It helps speed up page load, minimizes resource requirement by caching web pages through the help of browser.

As you know, Magento 2 has two types: clean cache and flush cache. So what is the difference between them?

  • Magento 2 Clear Cache: Clear all activated caches from Magento 2.
  • Magento 2 Flush Cache: Clear the entire cache no matter what kind of cache it is, it could affect other processing apps running with the same cache.

Methods To Clear Magento Cache

Method 1: Clear Magento Cache via Admin Panel

Step 1: Login to Admin Panel.

Step 2: Go to Cache Management by choose SYSTEM -> Cache Management.

Go to Cache Management

Step 3: Define the cache types that is to be refreshed.

You can use “Flush Magento Cache” or “Flush Cache Storage” buttons.

Flush Magento Cache And Flush Cache Storage

If you do not want to choose to delete all, you can tick each cache types below and select the Submit action.

Refresh cache the selected cache types
Method 2: Clear Magento Cache via Command Line

You can clear the cache by running the command line.

Clean the cache in the website

php bin/magento cache:clean

Clean the cache

php bin/magento cache:flush

Alternatively, the cache can be enable/disable using the command line.

php bin/magento cache:enable
php bin/magento cache:disable

You need to specify cache types like eav, db_dll, config, block_html, … to clean the specific cache layout.

You can read more useful articles like How To Setup Tier Price In Magento 2.

Follow us for the more helpful posts!

We hope this is a useful post for you.

Thank you for reading!

5 2 votes
Article Rating

Aaron LX

Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.

Leave a Reply or put your Question here

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x