Skip to content

Commit 2227540

Browse files
authored
Url type is missing in cache key
1 parent 1e61277 commit 2227540

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plugin/Url/Scope.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ public function __construct(
2323
) {}
2424

2525
public function afterGetBaseUrl(
26-
ScopeInterface $subject,
26+
ScopeInterface $scope,
2727
string $baseUrl,
2828
string $type = UrlInterface::URL_TYPE_LINK,
2929
?bool $secure = null
3030
): string {
31-
return $this->cache[$subject->getId()][(int)$secure] ??= $this->processUrl($subject, $baseUrl, $type, $secure);
31+
return $this->cache[$scope->getId()][$type][(int)$secure] ??= $this->process($scope, $baseUrl, $type, $secure);
3232
}
3333

34-
private function processUrl(
34+
private function process(
3535
ScopeInterface $subject,
3636
string $baseUrl,
3737
string $type = UrlInterface::URL_TYPE_LINK,

0 commit comments

Comments
 (0)