Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory indexer is cleaning all caches in scheduled mode #3370

Open
dudzio12 opened this issue Jan 4, 2023 · 1 comment
Open

Inventory indexer is cleaning all caches in scheduled mode #3370

dudzio12 opened this issue Jan 4, 2023 · 1 comment

Comments

@dudzio12
Copy link
Member

dudzio12 commented Jan 4, 2023

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 b6d7223, 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

@m2-assistant
Copy link

m2-assistant bot commented Jan 4, 2023

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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant