Skip to content

Complete cache invalidation on Magento 2.4.6 #37834

@ahmed-midori

Description

@ahmed-midori

Preconditions and environment

  • Magento 2.4.6
  • We have found that since updating to Magento 2.4.6 we are getting complete cache invalidations if a product changes to out of stock or if a product is edited in admin.

Steps to reproduce

The below issues have been found on a production site as well as a clean Magento install with sample data.

Issue 1 (product changes to out of stock):

If a shipment is created for the last available qty of a product making the product out of stock the complete site cache is invalidated.

Issue 2(Change to a product created in admin):

If any change is made to a product in admin such as change to product title or description then this also completely invalidates all cache site wide.

Expected result

Cache to be invalidated only for the product and the categories containing that product.

Actual result

Complete cache invalidation

Additional information

It is a huge inconvenience and not practical if you are running a site with many categories and 10's of thousands of products to have all cache invalidated just because a single product goes out of stock or a single product is edited.

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Admin UIComponent: CacheIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: ready for devReported on 2.4.6Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions