How to clear cache in Magento?


by lottie , in category: PHP CMS , 9 months ago

How to clear cache in Magento?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer


by denis , 3 months ago


To clear the cache in Magento, follow these steps:

  1. Log in to the Magento Admin Panel as an administrator.
  2. On the top menu, go to "System" and then select "Cache Management" from the dropdown.
  3. On the Cache Management page, select all of the cache types that you want to clear. You can use the "Select All" checkbox to select all of the cache types at once.
  4. In the Action dropdown menu, select "Flush Magento Cache" and then click the "Submit" button.

Alternatively, you can also clear the cache by using the command line. To do this, navigate to the root directory of your Magento installation using the command line and enter the following command:

php bin/magento cache:clean

This will clear all of the cache types in Magento. You can also use the following command to flush the cache:

php bin/magento cache:flush

This will flush the cache storage, which is similar to clearing the cache but may be more thorough.

It's important to note that clearing the cache can affect the performance of your Magento store. It's generally a good idea to clear the cache only when necessary, such as after making changes to the configuration or when troubleshooting issues.