ACSD-47937: price drop notifications not sent due to application-level caching

The ACSD-47937 patch fixes the issue where price drop notifications are not always sent due to application-level caching. This patch is available when the Quality Patches Tool (QPT) 1.1.26 is installed. The patch ID is ACSD-47937. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.6.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.4 and 2.4.5-p1

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.4, 2.4.5, and 2.4.5-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 Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

Customers are not getting product price drop email for subsequent product price changes.

Steps to reproduce:

  1. Enable Product Alert for both Price Changes and Back in Stock in Store > Configuration > Catalog > Product Alert.

  2. Enable Display Out of Stock Products.

  3. Create a simple product (ABC) with qty = 0.

  4. Create a customer from the storefront and subscribe to the above product to get product alerts for price drops.

  5. Start the product alert for customers.

    code language-php
    bin/magento queue:consumers:start product_alert
    
  6. Drop the price for the ABC product.

  7. Trigger the product alert cron.

    code language-php
    php n98-magerun2.phar sys:cron:run catalog_product_alert
    
  8. Drop the price for the ABC product again.

  9. Trigger the product alert cron.

    code language-php
    php n98-magerun2.phar sys:cron:run catalog_product_alert
    
NOTE
If you are not familiar with n98 tool, then you can run bin/magento cron:run command as usual and monitor cron_schedule table to make sure catalog_product_alert job gets success status.

Expected results:

The second price drop email is sent.

Actual results:

The second price drop email is not sent.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3