Skip to content

Commit f32f66b

Browse files
authored
MCLOUD-5953: Backport Redis patches (magento#46)
1 parent 46711d4 commit f32f66b

11 files changed

+3325
-51
lines changed

patches.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,14 @@
244244
},
245245
"Fix load balancer issue": {
246246
">=2.3.4 <2.3.6": "MCLOUD-5837__fix_filesystem_load_balancer_issue__2.3.4.patch"
247+
},
248+
"Cache Locking performance issue": {
249+
"2.3.3": "MDVA-27538__fix_performance_issue_in_cache_locking_mechanism__2.3.3.patch",
250+
">=2.3.3-p1 <2.3.4": "MDVA-27538__fix_performance_issue_in_cache_locking_mechanism__2.3.3-p1.patch",
251+
">=2.3.4 <2.3.5": "MDVA-26795__fix_performance_issue_in_cache_locking_mechanism__2.3.4.patch"
252+
},
253+
"Large amount of Keys Block Cache": {
254+
">=2.3.1 <2.3.5": "MDVA-22950__large_amount_of_keys_block_cache__2.3.1.patch"
247255
}
248256
},
249257
"magento/module-paypal": {
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
diff -Nuar a/vendor/magento/module-swatches/Block/Product/Renderer/Listing/Configurable.php b/vendor/magento/module-swatches/Block/Product/Renderer/Listing/Configurable.php
2+
--- a/vendor/magento/module-swatches/Block/Product/Renderer/Listing/Configurable.php
3+
+++ b/vendor/magento/module-swatches/Block/Product/Renderer/Listing/Configurable.php
4+
@@ -9,7 +9,6 @@ use Magento\Catalog\Block\Product\Context;
5+
use Magento\Catalog\Helper\Product as CatalogProduct;
6+
use Magento\Catalog\Model\Product;
7+
use Magento\Catalog\Model\Layer\Resolver;
8+
-use Magento\Catalog\Model\Layer\Category as CategoryLayer;
9+
use Magento\ConfigurableProduct\Helper\Data;
10+
use Magento\ConfigurableProduct\Model\ConfigurableAttributeData;
11+
use Magento\Customer\Helper\Session\CurrentCustomer;
12+
@@ -244,9 +243,12 @@ class Configurable extends \Magento\Swatches\Block\Product\Renderer\Configurable
13+
14+
$layeredAttributes = [];
15+
16+
- $configurableAttributes = array_map(function ($attribute) {
17+
- return $attribute->getAttributeCode();
18+
- }, $configurableAttributes);
19+
+ $configurableAttributes = array_map(
20+
+ function ($attribute) {
21+
+ return $attribute->getAttributeCode();
22+
+ },
23+
+ $configurableAttributes
24+
+ );
25+
26+
$commonAttributeCodes = array_intersect(
27+
$configurableAttributes,
28+
@@ -259,17 +261,4 @@ class Configurable extends \Magento\Swatches\Block\Product\Renderer\Configurable
29+
30+
return $layeredAttributes;
31+
}
32+
-
33+
- /**
34+
- * @inheritdoc
35+
- * @since 100.3.1
36+
- */
37+
- public function getCacheKeyInfo()
38+
- {
39+
- $cacheKeyInfo = parent::getCacheKeyInfo();
40+
- /** @var CategoryLayer $catalogLayer */
41+
- $catalogLayer = $this->layerResolver->get();
42+
- $cacheKeyInfo[] = $catalogLayer->getStateKey();
43+
- return $cacheKeyInfo;
44+
- }
45+
}

0 commit comments

Comments
 (0)