Managing Magento 2 cache via the command line
Cache management is one of the new optimized key features in Magento 2. We will be using the following cache types:
Cache types |
Cache type code name |
Description |
---|---|---|
Configuration |
|
Magento collects configuration from all modules, merges it, and saves the merged result to the cache. This cache also contains store-specific settings stored in the filesystem and database. Clean or flush this cache type after modifying configuration files. |
Layout |
|
This is the compiled page layout (that is, the layout components from all components). Clean or flush this cache type after modifying layout files. |
Block HTML output |
|
This is the HTML page fragments per block. Clean or flush this cache type after modifying the view layer. |
Collections data |
|
This is the result of database queries. If necessary, Magento cleans up this cache automatically, but third-party developers can put any data in any segment of the cache. Clean... |