From 6cf762d6aac7bf33d2c3acb1b8f27fb82c55f562 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Thu, 30 Oct 2025 05:54:51 +0100 Subject: [PATCH] Cache routes only when caching enabled I pulled the latest changes from Git recently and whenever I open the changelog page locally, it would render the trac page. After a quick debug session noticed that the routes are cached despite caching disabled. I assume that this cache shouldn't be set unless caching is actually enabled. Might also give a performance update on production --- app/public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/public/index.php b/app/public/index.php index f703b9340..d1ed85680 100644 --- a/app/public/index.php +++ b/app/public/index.php @@ -69,7 +69,7 @@ $app->add(new CacheMiddleware()); $routeCollector = $app->getRouteCollector(); -if (!CACHING_ENABLED) { +if (CACHING_ENABLED) { $routeCollector->setCacheFile('../tmp/cache/route_cache.php'); }