How to Clear Magento Cache from Command Line
To flush Magento 2 cache:
- Go to Magento root directory
- 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.
Last update: July 31, 2018
4.20 / 5.0
Article rating (10 Reviews)
Do you find this article useful? Please, let us know your opinion and rate the post!




