inventory
inventory copied to clipboard
Inventory indexer is cleaning all caches in scheduled mode
Preconditions (*)
- Magento >= 2.4.4
- MSI enabled
- Inventory index in scheduled mode
Steps to reproduce (*)
- Update qty of one product.
- Wait for reindexation process.
Expected result (*)
- Cache should be cleared only for that one product and optionally (if status has changed) for related categories.
Actual result (*)
- 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
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
- Join Magento Community Engineering Slack and ask your questions in #github channel.