{"data":{"id":"ACSD-52613","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where caches and indexes are refreshed even when no updates are made to Inventory_source items by rest API.","categories":["Inventory","Web API"],"components":["magento/module-inventory-bundle-product-indexer","magento/module-inventory-cache","magento/module-inventory-catalog","magento/module-inventory-catalog-search","magento/module-inventory-indexer"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-37/acsd-52613-cache-and-indexes-are-refreshed-with-no-updates","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-37/acsd-52613-cache-and-indexes-are-refreshed-with-no-updates.md","blobSha":"dc9079664cd2107655e4956d3184a0eb2ae1dde1","description":"Cache and indexes are refreshed when no updates are made to Inventory_source items by REST API.","stepsToReproduce":"1. Turn developer mode to have debug.log. 1. Prepare import file with 100 products - import.csv: sku name product_type attribute_set_code price test_sku_1 test_sku_1 simple Default 10 test_sku_2 test_sku_2 simple Default 10 ... test_sku_100 test_sku_100 simple Default 10 1. Import products from import.csv 1. Create new stock and source called test_stock and test_source. 1. Assign new stock to the website, and assign source to stock. 1. Create a new integration with access to all, activate it and copy-paste the Access Token. 1. Go to Stores > Configuration > Services > Oauth > Consumer Settings and enable Allow OAuth Access Tokens to be used as standalone Bearer tokens. 1. Flush the cache. 1. Set indexers as Updated by schedule 1. Execute API request POST ../rest/V1/inventory/source-items using this as the body { \"sourceItems\": [ { \"sku\": \"test_sku_1\", \"source_code\": \"test_source\", \"quantity\": 24, \"status\": 1 }, { \"sku\": \"test_sku_2\", \"source_code\": \"test_source\", \"quantity\": 50, \"status\": 1 }, { \"sku\": \"test_sku_3\", \"source_code\": \"test_source\", \"quantity\": 50, \"status\": 1 }, { \"sku\": \"test_sku_4\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_5\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_6\", \"source_code\": \"test_source\", \"quantity\": 19, \"status\": 1 }, { \"sku\": \"test_sku_7\", \"source_code\": \"test_source\", \"quantity\": 50, \"status\": 1 }, { \"sku\": \"test_sku_8\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_9\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_10\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_11\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_12\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_13\", \"source_code\": \"test_source\", \"quantity\": 50, \"status\": 1 }, { \"sku\": \"test_sku_14\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_15\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_16\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_17\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_18\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_19\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_20\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_21\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_22\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_23\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_24\", \"source_code\": \"test_source\", \"quantity\": 2, \"status\": 1 }, { \"sku\": \"test_sku_25\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_26\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_27\", \"source_code\": \"test_source\", \"quantity\": 13, \"status\": 1 }, { \"sku\": \"test_sku_28\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_29\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_30\", \"source_code\": \"test_source\", \"quantity\": 1, \"status\": 1 }, { \"sku\": \"test_sku_31\", \"source_code\": \"test_source\", \"quantity\": 2, \"status\": 1 }, { \"sku\": \"test_sku_32\", \"source_code\": \"test_source\", \"quantity\": 1, \"status\": 1 }, { \"sku\": \"test_sku_33\", \"source_code\": \"test_source\", \"quantity\": 49, \"status\": 1 }, { \"sku\": \"test_sku_34\", \"source_code\": \"test_source\", \"quantity\": 12, \"status\": 1 }, { \"sku\": \"test_sku_35\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_36\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_37\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_38\", \"source_code\": \"test_source\", \"quantity\": 10, \"status\": 1 }, { \"sku\": \"test_sku_39\", \"source_code\": \"test_source\", \"quantity\": 4, \"status\": 1 }, { \"sku\": \"test_sku_40\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_41\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_42\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_43\", \"source_code\": \"test_source\", \"quantity\": 2, \"status\": 1 }, { \"sku\": \"test_sku_44\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_45\", \"source_code\": \"test_source\", \"quantity\": 4, \"status\": 1 }, { \"sku\": \"test_sku_46\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_47\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_48\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_49\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_50\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_51\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_52\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_53\", \"source_code\": \"test_source\", \"quantity\": 2, \"status\": 1 }, { \"sku\": \"test_sku_54\", \"source_code\": \"test_source\", \"quantity\": 1, \"status\": 1 }, { \"sku\": \"test_sku_55\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_56\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_57\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_58\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_59\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_60\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_61\", \"source_code\": \"test_source\", \"quantity\": 16, \"status\": 1 }, { \"sku\": \"test_sku_62\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_63\", \"source_code\": \"test_source\", \"quantity\": 2, \"status\": 1 }, { \"sku\": \"test_sku_64\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_65\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_66\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_67\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_68\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_69\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_70\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_71\", \"source_code\": \"test_source\", \"quantity\": 16, \"status\": 1 }, { \"sku\": \"test_sku_72\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_73\", \"source_code\": \"test_source\", \"quantity\": 3, \"status\": 1 }, { \"sku\": \"test_sku_74\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_75\", \"source_code\": \"test_source\", \"quantity\": 4, \"status\": 1 }, { \"sku\": \"test_sku_76\", \"source_code\": \"test_source\", \"quantity\": 50, \"status\": 1 }, { \"sku\": \"test_sku_77\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_78\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_79\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_80\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_81\", \"source_code\": \"test_source\", \"quantity\": 2, \"status\": 1 }, { \"sku\": \"test_sku_82\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_83\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_84\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_85\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_86\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_87\", \"source_code\": \"test_source\", \"quantity\": 4, \"status\": 1 }, { \"sku\": \"test_sku_88\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_89\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_90\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_91\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_92\", \"source_code\": \"test_source\", \"quantity\": 4, \"status\": 1 }, { \"sku\": \"test_sku_93\", \"source_code\": \"test_source\", \"quantity\": 4, \"status\": 1 }, { \"sku\": \"test_sku_94\", \"source_code\": \"test_source\", \"quantity\": 3, \"status\": 1 }, { \"sku\": \"test_sku_95\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_96\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_97\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_98\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_99\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 }, { \"sku\": \"test_sku_100\", \"source_code\": \"test_source\", \"quantity\": 0, \"status\": 0 } ] } 1. Remove all the logs from var/log 1. Run the REST API request again. 1. Check the var/log/debug.log.","introducedInQpt":"1.1.37","createdFor":["2.4.6"],"documentedRange":"2.4.6 - 2.4.7","scheduledFixRelease":null},"files":[{"package":"magento/inventory-metapackage","constraint":">=1.2.6 <1.2.7","path":"patches/os/ACSD-52613_1.2.6_v2.patch","blobSha":"d68aecbcacb190fc99b1a4246a37cdfdef91a357","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-52613_1.2.6_v2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-bundle-product-indexer/Indexer/SourceItemIndexerProcessor.php","change":"added","package":"magento/module-inventory-bundle-product-indexer"},{"path":"vendor/magento/module-inventory-bundle-product-indexer/Plugin/InventoryIndexer/Indexer/SourceItem/Strategy/Sync/SourceItemIndexerPlugin.php","change":"deleted","package":"magento/module-inventory-bundle-product-indexer"},{"path":"vendor/magento/module-inventory-bundle-product-indexer/etc/di.xml","change":"modified","package":"magento/module-inventory-bundle-product-indexer"},{"path":"vendor/magento/module-inventory-cache/Model/CacheFlushProcessor.php","change":"added","package":"magento/module-inventory-cache"},{"path":"vendor/magento/module-inventory-cache/Plugin/InventoryIndexer/Indexer/SourceItem/Strategy/Sync/CacheFlush.php","change":"deleted","package":"magento/module-inventory-cache"},{"path":"vendor/magento/module-inventory-cache/etc/di.xml","change":"modified","package":"magento/module-inventory-cache"},{"path":"vendor/magento/module-inventory-catalog/Model/PriceIndexUpdateProcessor.php","change":"added","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/Plugin/InventoryIndexer/Indexer/SourceItem/Strategy/Sync/PriceIndexUpdater.php","change":"deleted","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog/etc/di.xml","change":"modified","package":"magento/module-inventory-catalog"},{"path":"vendor/magento/module-inventory-catalog-search/Model/FullTextIndexUpdateProcessor.php","change":"added","package":"magento/module-inventory-catalog-search"},{"path":"vendor/magento/module-inventory-catalog-search/Plugin/InventoryIndexer/Indexer/SourceItem/Strategy/Sync/FulltextIndexUpdater.php","change":"deleted","package":"magento/module-inventory-catalog-search"},{"path":"vendor/magento/module-inventory-catalog-search/etc/di.xml","change":"modified","package":"magento/module-inventory-catalog-search"},{"path":"vendor/magento/module-inventory-indexer/Indexer/SourceItem/CompositeProductProcessorInterface.php","change":"added","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-indexer/Indexer/SourceItem/Strategy/Sync.php","change":"modified","package":"magento/module-inventory-indexer"},{"path":"vendor/magento/module-inventory-indexer/Model/GetProductsIdsToProcess.php","change":"modified","package":"magento/module-inventory-indexer"}],"packages":["magento/module-inventory-bundle-product-indexer","magento/module-inventory-cache","magento/module-inventory-catalog","magento/module-inventory-catalog-search","magento/module-inventory-indexer"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":["2.3.7-p4","2.3.7-p3","2.3.7-p2","2.3.7-p1","2.3.7","2.3.6-p1","2.3.6","2.3.5-p2","2.3.5-p1","2.3.5","2.3.4-p2","2.3.4-p1","2.3.4","2.3.3-p2","2.3.3","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-52613 details"}