diff --git a/core/modules/tour/src/Plugin/HelpSection/TourHelpSection.php b/core/modules/tour/src/Plugin/HelpSection/TourHelpSection.php index 0058802..77a694d 100644 --- a/core/modules/tour/src/Plugin/HelpSection/TourHelpSection.php +++ b/core/modules/tour/src/Plugin/HelpSection/TourHelpSection.php @@ -69,19 +69,14 @@ public static function create(ContainerInterface $container, array $configuratio /** * {@inheritdoc} */ - public function getCacheTags() { - // The list of topics depends on the list cache tag for the tour entity - // type. - return $this->entityTypeManager->getDefinition('tour')->getListCacheTags(); - } - - /** - * {@inheritdoc} - */ - public function getCacheContexts() { - // The links are checked for user access, so we need the user - // permissions context. - return ['user.permissions']; + public function getCacheMaxAge() { + // The calculation of which URL (if any) gets put on which tour depends + // on a route access check. This can have a lot of inputs, including user + // permissions and other factors. Unfortunately, we don't have a way to + // get cachability metadata for each of these factors, so the only way + // to ensure that inapplicable information is not used is to forbid + // caching completely. + return 0; } /**