Cache routes

This commit is contained in:
Bernd Bestel
2023-05-21 14:13:05 +02:00
parent 89761ac141
commit c3dd1c4187
2 changed files with 58 additions and 86 deletions

View File

@@ -102,5 +102,7 @@ $errorMiddleware->setDefaultErrorHandler(
$app->add(new CorsMiddleware($app->getResponseFactory()));
$app->getRouteCollector()->setCacheFile(GROCY_DATAPATH . '/viewcache/route_cache.php');
ob_clean(); // No response output before here
$app->run();