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.