ACSD-63406: Expired persistent quotes not cleared when persistent_clear_expired cron job runs
The ACSD-63406 patch fixes the issue where the expired persistent quotes are not cleared by any cron job when the persistent_clear_expired cron job runs. This patch is available when the Quality Patches Tool (QPT) 1.1.62 is installed. The patch ID is ACSD-63406. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.8.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p1
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4-p9 - 2.4.4-p12, 2.4.5-p8 - 2.4.5-p11, 2.4.6-p6 - 2.4.7-p4
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
Expired persistent quotes are not cleared by any cron job when the persistent_clear_expired cron job runs.
Steps to reproduce:
-
Create a category and product.
-
Go to Stores > Configuration > Customers > Persistent Shopping Cart.
- Set all options to Yes.
- Set Persistence Lifetime (seconds) to 60.
-
Create a customer account on the storefront and log in.
-
Add a product to the cart.
-
Sign out, wait 60 seconds, and log in again.
Expected results:
The persistent_clear_expired cron job should delete persistent quotes based on the persistence lifetime settings in the configuration.
Actual results:
The is_persistent value for the customer quote remains 1 in the quote table.
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.