How to flush cache in Magento?

by muriel.schmidt , in category: PHP CMS , 9 months ago

How to flush cache in Magento?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by lindsey.homenick , 3 months ago

@muriel.schmidt 

To flush the cache in Magento, you can follow these steps:

  1. Log in to the Magento Admin Panel.
  2. Navigate to System > Cache Management.
  3. In the Cache Management page, select the checkbox next to all of the cache types that you want to flush.
  4. Click on the "Flush Magento Cache" button at the top of the page.

Alternatively, you can also flush the cache by running the following command from the root directory of your Magento installation:

1
php bin/magento cache:clean

This will clean all of the cache types that are enabled in your Magento installation. You can also specify specific cache types to clean by using the --type option, like this:

1
php bin/magento cache:clean --type=config

This will only clean the configuration cache. You can see a full list of available cache types by running the php bin/magento cache:clean --help command.