| Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/module-inventory-cache/etc/ |
| Current File : /var/www/www.indacotrentino.com/www/vendor/magento/module-inventory-cache/etc/di.xml |
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\InventoryIndexer\Indexer\Stock\Strategy\Sync">
<plugin name="invalidate_products_cache" type="Magento\InventoryCache\Plugin\InventoryIndexer\Indexer\Stock\Strategy\Sync\CacheFlush"/>
</type>
<type name="Magento\InventoryCache\Model\FlushCacheByProductIds">
<arguments>
<argument name="productCacheTag" xsi:type="const">Magento\Catalog\Model\Product::CACHE_TAG</argument>
</arguments>
</type>
<type name="Magento\InventoryCache\Model\FlushCacheByCategoryIds">
<arguments>
<argument name="categoryCacheTag" xsi:type="const">Magento\Catalog\Model\Product::CACHE_PRODUCT_CATEGORY_TAG</argument>
</arguments>
</type>
<type name="Magento\InventoryIndexer\Model\Queue\UpdateIndexSalabilityStatus">
<plugin name="invalidate_products_cache" type="Magento\InventoryCache\Plugin\InventoryIndexer\Queue\Reservation\UpdateSalabilityStatus\CacheFlush" />
</type>
<type name="Magento\InventoryCache\Model\CacheFlushProcessor">
<arguments>
<argument name="sortOrder" xsi:type="number">30</argument>
</arguments>
</type>
<type name="Magento\InventoryIndexer\Indexer\SourceItem\Strategy\Sync">
<arguments>
<argument name="saleabilityChangesProcessorsPool" xsi:type="array">
<item name="cacheFlushProcessor" xsi:type="object">Magento\InventoryCache\Model\CacheFlushProcessor</item>
</argument>
</arguments>
</type>
</config>