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
parent 65d008b40c
commit 90948f5096
No known key found for this signature in database

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);