1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 05:36:54 +02:00

feat(routes): ensure cache dir exists for routes #543

This commit is contained in:
Awilum
2021-09-14 18:10:21 +03:00
parent ec38028730
commit bcc637554d

View File

@@ -181,6 +181,7 @@ if (registry()->get('flextype.settings.output_buffering')) {
// Add Router Cache
if (registry()->get('flextype.settings.router.cache')) {
filesystem()->directory(PATH['tmp'] . '/routes')->ensureExists(0755, true);
app()->getRouteCollector()->setCacheFile(PATH['tmp'] . '/routes/routes.php');
}