Skip to content
Permalink
Browse files

issue #9

  • Loading branch information...
sepiariver committed Jul 1, 2019
1 parent 889d0dc commit 6a2cec744a8c9e4261387b296829861e31843c0b
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/components/googlesitemap/elements/snippets/googlesitemap.snippet.php
@@ -39,7 +39,9 @@
// Set context(s)
$context = array_filter(array_map('trim', explode(',', $modx->getOption('context', $scriptProperties, $modx->context->get('key'), true))));
$cacheKey .= '.' . md5($modx->toJSON($scriptProperties));
// Hash cache key
$cacheKey .= '.' . md5($modx->toJSON(array_merge($scriptProperties, ['context' => $context])));
// Fetch from cache
$output = null;

0 comments on commit 6a2cec7

Please sign in to comment.
You can’t perform that action at this time.