Magento 2 clear – flush cache programmatically

Published on

Magento 2 clear – flush cache programmatically. In this post, let’s find out how to clear/flush cache programmatically in Magento 2. It will be useful for you in your custom module or new feature.  In Magento 1, it’s quite simple using:

In Magento 2, we can use the following code: Define constructor

Use code … Continue reading Magento 2 clear – flush cache programmatically

Magento 2 Indexer – Manage indexer using command line Magento 2

Published on

Magento 2  Indexer – Indexing is how Magento transforms data ( products, categories … ) to improve the performance of your storefront. Magento stores lots of data (including catalog data, prices, users, stores … ) in many database tables. To optimize storefront performance, Magento accumulates data into special tables using indexers. For example, suppose you change … Continue reading Magento 2 Indexer – Manage indexer using command line Magento 2

Cache types in Magento 2

Published on

Cache types in Magento 2 – As we can see, there are 13 cache types in “System -> Cache Management”. In this post, let’s find out what they are used for and when we need to flush each type. 1. Configuration Code: config Description: Magento collects configuration from all modules, merges it, and saves the merged … Continue reading Cache types in Magento 2