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:
@@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user