File tree Expand file tree Collapse file tree 6 files changed +10
-4
lines changed
CatalogImportExport/Model Expand file tree Collapse file tree 6 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -2466,6 +2466,10 @@ private function reindexProducts($productIdsToReindex = [])
2466
2466
if (is_array ($ productIdsToReindex ) && count ($ productIdsToReindex ) > 0 && !$ indexer ->isScheduled ()) {
2467
2467
$ indexer ->reindexList ($ productIdsToReindex );
2468
2468
}
2469
+ $ indexer = $ this ->indexerRegistry ->get ('catalog_product_price ' );
2470
+ if (is_array ($ productIdsToReindex ) && count ($ productIdsToReindex ) > 0 && !$ indexer ->isScheduled ()) {
2471
+ $ indexer ->reindexList ($ productIdsToReindex );
2472
+ }
2469
2473
}
2470
2474
2471
2475
/**
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public function __construct(
34
34
public function afterImportSource (\Magento \ImportExport \Model \Import $ subject , $ import )
35
35
{
36
36
if (!$ this ->_indexerCategoryProductProcessor ->isIndexerScheduled ()) {
37
- $ this ->_indexerCategoryProductProcessor ->markIndexerAsInvalid ();
37
+ // $this->_indexerCategoryProductProcessor->markIndexerAsInvalid();
38
38
}
39
39
return $ import ;
40
40
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public function __construct(
34
34
public function afterImportSource (\Magento \ImportExport \Model \Import $ subject , $ import )
35
35
{
36
36
if (!$ this ->_indexerProductCategoryProcessor ->isIndexerScheduled ()) {
37
- $ this ->_indexerProductCategoryProcessor ->markIndexerAsInvalid ();
37
+ // $this->_indexerProductCategoryProcessor->markIndexerAsInvalid();
38
38
}
39
39
return $ import ;
40
40
}
Original file line number Diff line number Diff line change @@ -30,10 +30,12 @@ public function __construct(\Magento\Framework\Indexer\IndexerRegistry $indexerR
30
30
*/
31
31
public function afterImportSource (\Magento \ImportExport \Model \Import $ subject , $ result )
32
32
{
33
+ /*
33
34
$priceIndexer = $this->indexerRegistry->get(\Magento\Catalog\Model\Indexer\Product\Price\Processor::INDEXER_ID);
34
35
if (!$priceIndexer->isScheduled()) {
35
36
$priceIndexer->invalidate();
36
37
}
38
+ */
37
39
return $ result ;
38
40
}
39
41
}
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function __construct(\Magento\CatalogInventory\Model\Indexer\Stock\Proces
32
32
public function afterImportSource (\Magento \ImportExport \Model \Import $ subject , $ import )
33
33
{
34
34
if (!$ this ->_stockndexerProcessor ->isIndexerScheduled ()) {
35
- $ this ->_stockndexerProcessor ->markIndexerAsInvalid ();
35
+ // $this->_stockndexerProcessor->markIndexerAsInvalid();
36
36
}
37
37
return $ import ;
38
38
}
Original file line number Diff line number Diff line change @@ -690,7 +690,7 @@ public function invalidateIndex()
690
690
$ indexer = $ this ->indexerRegistry ->get ($ indexerId );
691
691
692
692
if (!$ indexer ->isScheduled ()) {
693
- $ indexer ->invalidate ();
693
+ // $indexer->invalidate();
694
694
}
695
695
// phpcs:disable Magento2.CodeAnalysis.EmptyBlock.DetectedCatch
696
696
} catch (\InvalidArgumentException $ e ) {
You can’t perform that action at this time.
0 commit comments