Skip to content

Commit

Permalink
NGSTACK-843 moved siteConfig resolver line below cache checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Katarina Miočić committed May 9, 2024
1 parent cc55f5a commit 189be79
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public function setLogger(LoggerInterface $logger): void
*/
public function extractPageText(int $contentId, string $languageCode): array
{
$siteConfig = $this->siteAccessConfigResolver->getSiteConfigForContent($contentId);

if (isset($this->cache[$contentId][$languageCode])) {
return $this->cache[$contentId][$languageCode];
}
Expand All @@ -69,6 +67,7 @@ public function extractPageText(int $contentId, string $languageCode): array
$this->cache = [];
}

$siteConfig = $this->siteAccessConfigResolver->getSiteConfigForContent($contentId);

try {
$html = $this->fetchPageSource($contentId, $languageCode, $siteConfig);
Expand Down

0 comments on commit 189be79

Please sign in to comment.