Skip to content

Commit 8278911

Browse files
committed
MC-16108: [Performance] EAV attribute is not cached
- Add system configuration for caching non user defined attributes; - Restructure system attributes in di.xml;
1 parent a1d7370 commit 8278911

File tree

6 files changed

+259
-194
lines changed

6 files changed

+259
-194
lines changed

app/code/Magento/Catalog/Model/Config.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class Config extends \Magento\Eav\Model\Config
133133
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
134134
* @param \Magento\Eav\Model\Config $eavConfig
135135
* @param SerializerInterface $serializer
136-
* @param array $systemAttributes
136+
* @param array $attributesForPreload
137137
*
138138
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
139139
*/
@@ -151,7 +151,7 @@ public function __construct(
151151
\Magento\Store\Model\StoreManagerInterface $storeManager,
152152
\Magento\Eav\Model\Config $eavConfig,
153153
SerializerInterface $serializer = null,
154-
$systemAttributes = []
154+
$attributesForPreload = []
155155
) {
156156
$this->_scopeConfig = $scopeConfig;
157157
$this->_configFactory = $configFactory;
@@ -168,7 +168,8 @@ public function __construct(
168168
$cacheState,
169169
$universalFactory,
170170
$serializer,
171-
$systemAttributes
171+
$scopeConfig,
172+
$attributesForPreload
172173
);
173174
}
174175

0 commit comments

Comments
 (0)