The MDVA-30102 patch solves the issue of the Redis cache getting full and generating errors, causing problems with Product Listing Pages (PLP) and Product Detail Pages (PDP) such as missing products. This patch is available when the Quality Patches Tool (QPT) v1.0.6 is installed.
Affected products and versions
The patch is created for Magento version:
- Magento Commerce Cloud 2.3.5-p1
Compatible with Magento versions:
- Magento Commerce and Magento Commerce Cloud 2.3.2-2.4.1-p1
Note: the patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the
magento/quality-patches package to the latest version and check the compatibility on the QPT landing page. Use the patch ID as a search keyword to locate the patch.
Redis cache is getting full and the allocated
maxmemory appears to be insufficient. The layout cache didn't have TTL and was not evicted causing cache growth and eviction of other keys in Redis. As the result all Redis memory was allocated for layout cache. Steps to reproduce:
- The user must be on Magento Commerce 2.4 and have 100K simple products (product type does not matter) and 50 categories.
- Redis cache must be configured according to steps in DevDocs Magento Configuration Guide > Use Redis for the Magento page and default cache .
- Browse through all the PDPs and PLPs. You can use OWASP ZAP to crawl the site.
- Observe the Redis memory usage.
- Also check current configuration and used memory. Run the following command in the CLI. It checks for used memory, maxmemory, evicted keys, and Redis up time in days:
redis-cli -p REDIS_PORT -h REDIS_HOST info | egrep --color "(role|used_memory_peak|maxmemory|evicted_keys|uptime_in_days)"
Redis cache grows up to ~5GB. There is a max limit of 8GB of Redis memory, so if you have 1M products you will run out memory very quickly. Expected result:
Redis cache should not be rapidly growing.
Apply the patch
For instructions on how to apply an QPT patch, use the following links depending on your Magento product:
- Magento Commerce: DevDocs Apply patches using Quality Patches Tool .
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply patches .
To learn more about Quality Patches Tool, refer to:
- KB Quality Patches Tool released: a new tool to self-serve quality patches .
- KB Check if patch is available for your Magento issue using Quality Patches Tool .
For info about other patches available in QPT tool, refer to the Patches available in QPT tool section.