inventory icon indicating copy to clipboard operation
inventory copied to clipboard

Inventory indexer is cleaning all caches in scheduled mode

Open dudzio12 opened this issue 2 years ago • 1 comments

Preconditions (*)

  1. Magento >= 2.4.4
  2. MSI enabled
  3. Inventory index in scheduled mode

Steps to reproduce (*)

  1. Update qty of one product.
  2. Wait for reindexation process.

Expected result (*)

  1. Cache should be cleared only for that one product and optionally (if status has changed) for related categories.

Actual result (*)

  1. All frontend caches are cleared.

The issue is fixed by https://github.com/magento/inventory/commit/b6d7223b8ca3b13c4049b3b0f6efc645b0848e01, but I want to address this situation. We spent a lot of time debugging this cache issue. This commit is almost 6 months old and yet there is no public version fixing this critical issue nor the patch. Could you take this in mind and publish some notes about those known issues somewhere to save our time debugging?

I've prepared and attached simple patch to fix this issues, until it's fixed by new public version: flush-cache-by-cache-tag.patch

dudzio12 avatar Jan 04 '23 11:01 dudzio12

Hi @dudzio12. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] avatar Jan 04 '23 11:01 m2-assistant[bot]