Contact
Site: US UK AU |

How to disable caching in Magento 2

How to disable caching in Magento 2

Overview
This article shows how to disable caching in Magento 2 for development purposes.  

Purpose

Magento 2 caches many parts of your website, which is critical to daily operations but can be a nuisance during development. This document shows how to disable caching.

From your Dashboard

  1. Log in to your Magento 2 dashboard.

  2. Select System > Cache Management (Figure 1).


    Figure 1. Magento 2 dashboard; System > Cache Management

  3. The Cache Management page will appear. From the Actions drop-down list, select Disable, click the top check box to select all, then click Submit (Figure 2).


    Figure 2. Actions >Disable.

  4. To make sure the cache has completely cleared, click Flush Magento Cache (Figure 3).


    Figure 3. FlushMagentoCache button.

From the CLI

Observe the following steps to disable caching in Magento 2 from the command line inteface (CLI):

  1. To disable all cache types, enter:

    php bin/magento cache:disable

  2. Now make sure the cache has completely cleared by flushing the cache:

    php bin/magento cache:flush

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (2 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How to enable CAPTCHA for user creation in Magento 2
Added on Mon, Feb 19, 2018
How to set the return-path email in Magento 2
Added on Thu, Apr 21, 2016
How to reset Magento 2 admin passwords
Added on Fri, Jun 3, 2016
How to disable maintenance mode in Magento
Added on Fri, Dec 15, 2017
How to configure Magento 2 cron jobs
Added on Tue, Apr 19, 2016
How to add admins in Magento 2
Added on Mon, Dec 12, 2016
How to configure Magento 2 storefronts
Added on Wed, Dec 30, 2015
How to set up Magento 2 to use your SSL certificate
Added on Tue, Oct 11, 2016
How to write redirect (301) rules for Magento 2
Added on Wed, Jan 27, 2016
How to configure CDN access for Magento 2
Added on Thu, Mar 31, 2016