Skip to content

Commit c8e9365

Browse files
committed
MC-6273: Mysql url_rewrite select make on product view page 170+ times per request
- fixed unit tests
1 parent 7dfdd68 commit c8e9365

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/Magento/Framework/Cache/LockGuardedCacheLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __construct(
5858
* @param callable $dataLoader
5959
* @param callable $dataCollector
6060
* @param callable $dataSaver
61-
* @return array
61+
* @return mixed
6262
*/
6363
public function lockedLoadData(
6464
string $lockName,

lib/internal/Magento/Framework/View/Element/AbstractBlock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ protected function getCacheLifetime()
10841084
/**
10851085
* Load block html from cache storage
10861086
*
1087-
* @return string|false
1087+
* @return string
10881088
*/
10891089
protected function _loadCache()
10901090
{
@@ -1126,7 +1126,7 @@ protected function _loadCache()
11261126
}
11271127
};
11281128

1129-
return $this->lockQuery->lockedLoadData(
1129+
return (string)$this->lockQuery->lockedLoadData(
11301130
$this->getCacheKey(),
11311131
$loadAction,
11321132
$collectAction,

0 commit comments

Comments
 (0)