The cache is the biggest issue when you develop so you need to know all the possible ways of cleaning it.
There are 3 way to clean the cache (similar to Magento 1):
-
From the backend (Admin):
-
Through command-line (CLI) tool:
12345678910# in your Magento root folder# the php from the beginning of the line can be omitted# -- cache:clean deletes the cache storagephp bin/magento cache:clean# -- cache:flush will wipe out everythingphp bin/magento cache:flush -
Manually removing the cache files:
1234# from magento root directory in command line run the commandrm -rf var/cache/*
You can also check the cache status
First of all, let show cache status by the following command line:
1 2 3 4 |
php bin/magento cache:status |
Result of cache status
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Current status: config: 1 layout: 1 block_html: 1 collections: 1 reflection: 1 db_ddl: 1 eav: 1 config_integration: 1 config_integration_api: 1 full_page: 1 translate: 1 config_webservice: 1 |