How to disable caching in Magento 2 in command line or back-end


Magento 2 caches several parts of your online store. This feature is both crucial to daily operation and a nuisance during development. This tutorial will help you solve part of the problem by showing you how to disable caching in Magento 2.

Related tutorials:

Disable caching via Backend

1. Login to the backend of your Magento 2 store.

2. From the Admin sidebar, navigate to System > Cache Management.

3. From the Action drop-down menu, select Disable. Select the top checkbox to select all or select individual caches. Click Submit to continue.

4. Click Flush Magento Cache to ensure the disabling process.

Disable caching via command line

To use the command line, use the following command to disable all cache types in your CLI:

To disable a specific cache type, use this command line:

Flush the cache by the command:

If you want to re-enable caching, use this command:

To re-enable specific caching type, enter:

That comes to the end of the tutorial. If you have any further question, please comment below to let us know.

Rate this post


About Author

Daniel is a Magento developer with 5 years of experience with customizing Magento extensions, Magento templates. He's main author at Magento explorer

Leave A Reply