How to flush and clear Magento cache

Jul 24, 2022 · 1 min read · Post a comment

If you are struggling to clear the Magento cache through the Magento UI then you should consider connecting to your server and flushing it through the terminal. Here I can show you how to clear, flush and check the Magento cache status.


  • Alpine Linux
  • SSH access
  • sudo privileges

Flush Magento cache through terminal

Step 1. Navigate to the Magento root directory. To clean the cache storage, run:

php bin/magento cache:clean

Step 2. To flush the Magento cache, run:

php bin/magento cache:flush

Step 3. To check the status of the Magento cache, run:

php bin/magento cache:status


Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.