File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -836,12 +836,12 @@ public function eavReindexCallback()
836
836
public function reindex ()
837
837
{
838
838
if ($ this ->_catalogProduct ->isDataForProductCategoryIndexerWasChanged ($ this ) || $ this ->isDeleted ()) {
839
- $ this ->_productFlatIndexerProcessor ->reindexRow ($ this ->getEntityId ());
840
- $ categoryIndexer = $ this ->indexerRegistry ->get (Indexer \Product \Category::INDEXER_ID );
841
- if (!$ categoryIndexer ->isScheduled ()) {
842
- $ categoryIndexer ->reindexRow ($ this ->getId ());
839
+ $ productCategoryIndexer = $ this ->indexerRegistry ->get (Indexer \Product \Category::INDEXER_ID );
840
+ if (!$ productCategoryIndexer ->isScheduled ()) {
841
+ $ productCategoryIndexer ->reindexRow ($ this ->getId ());
843
842
}
844
843
}
844
+ $ this ->_productFlatIndexerProcessor ->reindexRow ($ this ->getEntityId ());
845
845
}
846
846
847
847
/**
@@ -2013,6 +2013,11 @@ public function getIdentities()
2013
2013
$ identities [] = self ::CACHE_PRODUCT_CATEGORY_TAG . '_ ' . $ categoryId ;
2014
2014
}
2015
2015
}
2016
+ if ($ this ->getOrigData ('status ' ) > $ this ->getData ('status ' )) {
2017
+ foreach ($ this ->getData ('category_ids ' ) as $ categoryId ) {
2018
+ $ identities [] = self ::CACHE_PRODUCT_CATEGORY_TAG . '_ ' . $ categoryId ;
2019
+ }
2020
+ }
2016
2021
return $ identities ;
2017
2022
}
2018
2023
Original file line number Diff line number Diff line change 89
89
<item name =" entity_id" xsi : type =" string" >entity_id</item >
90
90
<item name =" store_id" xsi : type =" string" >store_id</item >
91
91
<item name =" visibility" xsi : type =" string" >visibility</item >
92
+ <item name =" status" xsi : type =" string" >status</item >
92
93
</item >
93
94
</argument >
94
95
<argument name =" productRepository" xsi : type =" object" >Magento\Catalog\Api\ProductRepositoryInterface\Proxy</argument >
You can’t perform that action at this time.
0 commit comments