5 (100%) 1 vote

Part 1: Manage caches using CLI

Magento 2 has provided the powerful command-line interface tool (CLI). It allows you to perform tasks including installation, configuration, database backups, compiling LESS etc. In this article, I will show you how to manage caches in Magento 2 using CLI.

The first you should read our previous article for more understanding Magento 2 cLI:

How to Use Magento 2 Command Line Interface

Use All Commands in Magento 2 CLI
Use All Commands in Magento 2 CLI

1.View status of all caches

You got the result

2.Enable/ Disable cache

The command below will enable the config cache & full page cache

The command to disable layout cache

  1. Clean and flush caches

Clean cache

The command below clean config & translate cache

Flush cache

the command below flush full page cache

Flush all cache types

The steps I mention above is the shortest process for you toUse All Commands in Magento 2 CLI . With this guide, you can manage the Commands in Magento 2 CLI easily.

Thank you for reading this post and see you in other posts from Magestore!


How to Upload File to FTP Server by Coding in Magento 2
Cannot Export from Grid UI Component Using Custom Dataprovider

Comments are closed.