diff --git a/src/Controller/RegisterController.php b/src/Controller/RegisterController.php index cc03a2e..40c6192 100644 --- a/src/Controller/RegisterController.php +++ b/src/Controller/RegisterController.php @@ -62,8 +62,9 @@ public function register(): TrustedRedirectResponse { $url = $this->getRegisterUrl()->toString(); $response = new TrustedRedirectResponse($url); - $cache = new CacheableMetadata(); - $cache->addCacheContexts(['user.roles:anonymous']); + $cache = (new CacheableMetadata()) + ->addCacheContexts(['user.roles:anonymous']) + ->setCacheTags(['config:oe_authentication.settings']); $response->addCacheableDependency($cache); return $response;