diff --git a/src/services/SitemapService.php b/src/services/SitemapService.php index 81565a4..4df3fad 100644 --- a/src/services/SitemapService.php +++ b/src/services/SitemapService.php @@ -151,7 +151,7 @@ public function getSitemapData($siteId, $type, $sectionId) if (!Craft::$app->getConfig()->general->devMode) { $data = Craft::$app->getCache()->getOrSet( - '', + self::SITEMAP_CACHE_KEY . "_" . $siteId . "_" . $sectionId, function () use ($data, $type, $settings, $sectionId) { return $this->_addElementsToSitemap($data, $settings[$type][$sectionId]); },