Skip to content

Commit 606be87

Browse files
author
torreytsui
committed
Remove stateless caching of stateful table builder
1 parent e7d2f8f commit 606be87

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

app/code/Magento/Catalog/Model/Indexer/Product/Flat/TableBuilder.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ class TableBuilder
3838
*/
3939
private $tableBuilderFactory;
4040

41-
/**
42-
* Check whether builder was executed
43-
*
44-
* @var bool
45-
*/
46-
protected $_isExecuted = false;
47-
4841
/**
4942
* Constructor
5043
*
@@ -74,9 +67,6 @@ public function __construct(
7467
*/
7568
public function build($storeId, $changedIds, $valueFieldSuffix)
7669
{
77-
if ($this->_isExecuted) {
78-
return;
79-
}
8070
$entityTableName = $this->_productIndexerHelper->getTable('catalog_product_entity');
8171
$attributes = $this->_productIndexerHelper->getAttributes();
8272
$eavAttributes = $this->_productIndexerHelper->getTablesStructure($attributes);
@@ -121,7 +111,6 @@ public function build($storeId, $changedIds, $valueFieldSuffix)
121111
//Fill temporary tables with attributes grouped by it type
122112
$this->_fillTemporaryTable($tableName, $columns, $changedIds, $valueFieldSuffix, $storeId);
123113
}
124-
$this->_isExecuted = true;
125114
}
126115

127116
/**

0 commit comments

Comments
 (0)