You can get list of cache types and their status using below command :
php bin/magento cache:status
Output :
Current status:
config: 1
layout: 1
block_html: 1
collections: 1
reflection: 1
db_ddl: 1
compiled_config: 1
eav: 1
customer_notification: 1
config_integration: 1
config_integration_api: 1
full_page: 1
target_rule: 1
config_webservice: 1
translate: 1
amasty_shopby: 1
vertex: 1
For example, to disable the full page cache run below command:
(you can specify multiple cache types in line separated by space)
php bin/magento cache:disable full_page
Output :
Changed cache status:
full_page: 1 -> 0
To Enable cache type example :
php bin/magento cache:enable full_page
Output :
Changed cache status:
full_page: 0 -> 1
Cleaned cache types:
full_page
I hope the quick tutorial was helpful 🙂