6
6
7
7
namespace Magento \Catalog \Model \Indexer \Product \Price ;
8
8
9
- use Magento \Catalog \Model \Product ;
10
9
use Magento \Catalog \Model \Product \Type ;
11
10
use Magento \Catalog \Model \ResourceModel \Product \Indexer \Price \DefaultPrice ;
12
11
use Magento \Catalog \Model \ResourceModel \Product \Indexer \Price \Factory ;
21
20
use Magento \Framework \Exception \InputException ;
22
21
use Magento \Framework \Exception \LocalizedException ;
23
22
use Magento \Framework \Exception \NoSuchEntityException ;
24
- use Magento \Framework \Indexer \CacheContext ;
25
23
use Magento \Framework \Indexer \DimensionalIndexerInterface ;
26
24
use Magento \Framework \Search \Request \Dimension ;
27
25
use Magento \Framework \Stdlib \DateTime ;
@@ -63,6 +61,8 @@ abstract class AbstractAction
63
61
protected $ _storeManager ;
64
62
65
63
/**
64
+ * Currency factory
65
+ *
66
66
* @var CurrencyFactory
67
67
*/
68
68
protected $ _currencyFactory ;
@@ -83,6 +83,8 @@ abstract class AbstractAction
83
83
protected $ _catalogProductType ;
84
84
85
85
/**
86
+ * Indexer price factory
87
+ *
86
88
* @var Factory
87
89
*/
88
90
protected $ _indexerPriceFactory ;
@@ -107,11 +109,6 @@ abstract class AbstractAction
107
109
*/
108
110
private $ tableMaintainer ;
109
111
110
- /**
111
- * @var CacheContext
112
- */
113
- private $ cacheContext ;
114
-
115
112
/**
116
113
* @param ScopeConfigInterface $config
117
114
* @param StoreManagerInterface $storeManager
@@ -124,7 +121,6 @@ abstract class AbstractAction
124
121
* @param TierPrice|null $tierPriceIndexResource
125
122
* @param DimensionCollectionFactory|null $dimensionCollectionFactory
126
123
* @param TableMaintainer|null $tableMaintainer
127
- * @param CacheContext|null $cacheContext
128
124
* @SuppressWarnings(PHPMD.NPathComplexity)
129
125
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
130
126
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
@@ -140,8 +136,7 @@ public function __construct(
140
136
DefaultPrice $ defaultIndexerResource ,
141
137
TierPrice $ tierPriceIndexResource = null ,
142
138
DimensionCollectionFactory $ dimensionCollectionFactory = null ,
143
- TableMaintainer $ tableMaintainer = null ,
144
- CacheContext $ cacheContext = null
139
+ TableMaintainer $ tableMaintainer = null
145
140
) {
146
141
$ this ->_config = $ config ;
147
142
$ this ->_storeManager = $ storeManager ;
@@ -161,7 +156,6 @@ public function __construct(
161
156
$ this ->tableMaintainer = $ tableMaintainer ?? ObjectManager::getInstance ()->get (
162
157
TableMaintainer::class
163
158
);
164
- $ this ->cacheContext = $ cacheContext ?? ObjectManager::getInstance ()->get (CacheContext::class);
165
159
}
166
160
167
161
/**
@@ -397,7 +391,6 @@ protected function _reindexRows($changedIds = [])
397
391
398
392
if ($ changedIds ) {
399
393
$ this ->deleteIndexData ($ changedIds );
400
- $ this ->cacheContext ->registerEntities (Product::CACHE_TAG , $ changedIds );
401
394
}
402
395
403
396
$ typeIndexers = $ this ->getTypeIndexers ();
0 commit comments