ACSD-63687: Incorrect prices are displayed due to Redis cache cleanup issues
The ACSD-63687 patch fixes the issue where incorrect prices display when the Redis cache garbage collector runs without LUA mode, causing race conditions. This patch is available when the Quality Patches Tool (QPT) 1.1.77 is installed. The patch ID is ACSD-63687. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.5-p9
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.5 - 2.4.6-p13
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Incorrect prices display because Redis cache cleanup fails.
Steps to reproduce:
-
Configure Redis for the Adobe Commerce environment.
-
Create multiple product categories in the storefront.
-
Create a script that sends recurring requests to a category page. Use a JMeter script or an equivalent load‑testing tool.
-
While the script sends requests to the category page, perform a
block_htmlcache clean and run thebackend_clean_cachecron job multiple times. -
Execute the provided script to identify Redis cache key records that don’t exist in the MAGE cache set. Update the Redis port and MAGE cache tag prefix to match the local project configuration.
code language-none #!/bin/bash REDIS_PORT=6379 REDIS_DB=0 SET_NAME="zc:ti:af6_MAGE" redis-cli -p $REDIS_PORT -n $REDIS_DB keys "zc:k:*" | while read KEY; do STRIPPED_KEY=${KEY#"zc:k:"} EXISTS=$(redis-cli -p $REDIS_PORT -n $REDIS_DB sismember "$SET_NAME" "$STRIPPED_KEY") if [ "$EXISTS" -eq 0 ]; then TIMESTAMP=$(redis-cli -p $REDIS_PORT -n $REDIS_DB hget "$KEY" "m") if [ -n "$TIMESTAMP" ]; then FORMATTED_TIME=$(date -r "$TIMESTAMP" +"%y-%m-%d %H:%M:%S") echo "$KEY - m: $FORMATTED_TIME" else echo "$KEY - m: (null)" fi fi done
Expected results:
Cache keys without corresponding records are not created in Redis, and the backend_clean_cache Cron job cleans cache entries correctly.
Actual results:
Cache keys are created in Redis without corresponding records, so cache cleanup triggered by the backend_clean_cache cron doesn’t work.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.