In Magento admin under System → Cache Management you will find two buttons that appear to do almost the same thing: Flush Magento Cache and Flush Cache Storage. The difference is simpler than their names suggest. Flush Magento Cache roughly…
Who or What Keeps Clearing the Cache? (Magento 2)
Does one of your Magento 2 caches seem to clear itself all the time? A Call Stack can help you find the cause. With custom extensions, it can show exactly which code triggered a cache cleanup. For temporary analysis, you…
High Redis or Valkey Memory Usage (Magento 2)
If Redis or Valkey consumes unusually large amounts of memory in a Magento 2 store with a large product catalog, a Magento core bug may be responsible. Adobe tracks the issue under the patch ACP2E-4908. Magento may create a separate…
Private Sections vs. cacheable=”false”: What’s the Difference? (Magento 2)
Dynamic content in Magento 2 does not automatically mean you must disable the Full Page Cache for the entire page. That is what Private Contentis designed to help avoid. A block with cacheable=”false” can make the whole page non-cacheable. With…
Page Is Not Served from Cache? (Magento 2)
If a product, category or CMS page is never cached despite an enabled Full Page Cache , the cause is not always Varnish, Redis or cache configuration. Sometimes a single layout XML block can exclude the entire page from full…
What Are X-Magento-Tags?
When investigating Magento caching in more detail, you may encounter X-Magento-Tags. Magento uses these tags to describe which entities contribute to a cached response, such as products, categories or CMS pages. Typical cache tags look like this:
|
1 2 3 |
cat_p_123 cat_c_42 cms_p_5 |
The structure…
Code Changes Are Not Applied (Magento 2)
If you change a PHP, XML or template file in Magento 2 and still see the old version after clearing the cache, it does not necessarily mean you edited the wrong file. Generated code, static assets, PHP OPcache, Varnish or…
Magento 2: Valkey Replaces Redis. Is Your Store Affected?
With Magento 2.4.9, the supported caching infrastructure changes. Redis is no longer supported as a cache backend; Valkey 9 is the intended replacement. Magento can still use file-based caching, but stores currently using Redis need to review their configuration and…
Unable to enable or disable the cache in the admin (Magento 2)
Since Magento 2.2, individual cache types can no longer be enabled or disabled directly from the admin area when the store is in Production Mode. You have two ways to handle this: 1. Switch to developer mode:
|
1 |
php bin/magento deploy:mode:set developer |
Keep in…
Clearing the cache from the command line (CLI) (Magento 1)
To clear your Magento 1 cache from the command line (CLI), run the following command in the root directory of your Magento 1 installation:
|
1 |
php -r 'require "app/Mage.php"; Mage::app()->getCacheInstance()->flush();' |