File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ class Config
30
30
/**#@-*/
31
31
32
32
/**
33
- * Xml path to non user defined eav caching attributes configuration.
33
+ * Xml path to caching user defined eav attributes configuration.
34
34
*/
35
- private const XML_PATH_CACHE_NON_USER_DEFINED_ATTRIBUTES = 'dev/caching/cache_non_user_defined_attributes ' ;
35
+ private const XML_PATH_CACHE_USER_DEFINED_ATTRIBUTES = 'dev/caching/cache_user_defined_attributes ' ;
36
36
37
37
/**#@-*/
38
38
protected $ _entityTypeData ;
@@ -551,7 +551,7 @@ public function getAttribute($entityType, $code)
551
551
return $ this ->attributes [$ entityTypeCode ][$ code ];
552
552
}
553
553
554
- if ($ this ->scopeConfig ->getValue (self ::XML_PATH_CACHE_NON_USER_DEFINED_ATTRIBUTES )) {
554
+ if ($ this ->scopeConfig ->getValue (self ::XML_PATH_CACHE_USER_DEFINED_ATTRIBUTES )) {
555
555
$ cacheKey = self ::ATTRIBUTES_CACHE_ID . '-attribute- ' . $ entityTypeCode . '- ' . $ code ;
556
556
$ attributeData = $ this ->isCacheEnabled () && ($ attribute = $ this ->_cache ->load ($ cacheKey ))
557
557
? $ this ->serializer ->unserialize ($ attribute )
Original file line number Diff line number Diff line change 10
10
<section id =" dev" >
11
11
<group id =" caching" translate =" label" type =" text" sortOrder =" 120" showInDefault =" 1" showInWebsite =" 0" showInStore =" 0" >
12
12
<label >Caching Settings</label >
13
- <field id =" cache_non_user_defined_attributes " translate =" label comment" type =" select" sortOrder =" 10" showInDefault =" 1" showInWebsite =" 0" showInStore =" 0" canRestore =" 1" >
14
- <label >Cache Non User Defined Attributes</label >
13
+ <field id =" cache_user_defined_attributes " translate =" label comment" type =" select" sortOrder =" 10" showInDefault =" 1" showInWebsite =" 0" showInStore =" 0" canRestore =" 1" >
14
+ <label >Cache User Defined Attributes</label >
15
15
<source_model >Magento\Config\Model\Config\Source\Yesno</source_model >
16
16
<comment >By default only system EAV attributes are cached.</comment >
17
17
</field >
Original file line number Diff line number Diff line change 22
22
</general >
23
23
<dev >
24
24
<caching >
25
- <cache_non_user_defined_attributes >0</cache_non_user_defined_attributes >
25
+ <cache_user_defined_attributes >0</cache_user_defined_attributes >
26
26
</caching >
27
27
</dev >
28
28
</default >
You can’t perform that action at this time.
0 commit comments