Skip to content

Commit

Permalink
Fixed #14, cache sitemap sections with the correct key
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Oct 30, 2019
1 parent 38eeaca commit 6f88883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/SitemapService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
},
Expand Down

0 comments on commit 6f88883

Please sign in to comment.