Skip to content

Commit

Permalink
Merge pull request #97 from b13/bugfix/issue-96
Browse files Browse the repository at this point in the history
[BUGFIX] short cache identifier by md5
  • Loading branch information
bmack authored Jun 14, 2023
2 parents 76e91de + 4041a22 commit 4049414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Compiler/AbstractMenuCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function generateCacheIdentifierForMenu(string $prefix, array $configu
$visibilityAspect = $this->context->getAspect('visibility');
$visibility = $visibilityAspect->includeHiddenPages() ? '-with-hidden' : '';
$root = $this->getCurrentSite()->getRootPageId();
$identifier = $prefix . '-root-' . $root . '-language-' . $language . '-groups-' . implode('_', $groupIds) . '-' . $visibility . '-' . substr(md5(json_encode($configuration)), 0, 10);
$identifier = $prefix . '-root-' . $root . '-language-' . $language . '-groups-' . md5(implode('_', $groupIds)) . '-' . $visibility . '-' . substr(md5(json_encode($configuration)), 0, 10);
return $identifier;
}

Expand Down

0 comments on commit 4049414

Please sign in to comment.