fix(CachingRouter): Disable cache for findMatchingRoute

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2025-12-09 09:16:01 +01:00 committed by backportbot[bot]
parent aeed624013
commit c8a638f7e0

View file

@ -74,6 +74,8 @@ class CachingRouter extends Router {
* @return array
*/
public function findMatchingRoute(string $url): array {
return parent::findMatchingRoute($url);
$this->eventLogger->start('cacheroute:match', 'Match route');
$key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . '#rootCollection';
$cachedRoutes = $this->cache->get($key);