eee
This commit is contained in:
+3
-3
@@ -262,9 +262,9 @@ class Router
|
||||
$usedArtifact = $router->importArtifact($artifact, $appChangedFiles);
|
||||
}
|
||||
|
||||
if (!$usedArtifact) {
|
||||
$this->read_dir_file(APP_PATH . 'routes');
|
||||
}
|
||||
// routes 目录中的显式路由文件必须每次重建路由表时重新 include。
|
||||
// route artifact 只加速注解路由,不能替代 routes/*.php 的注册副作用。
|
||||
$this->read_dir_file(APP_PATH . 'routes');
|
||||
|
||||
if (!$routeChanged && !empty($appChangedFiles) && ($scanConfig['cache_enabled'] ?? false)) {
|
||||
$scanner->scanFiles($appChangedFiles, APP_PATH . 'app/', null, !$usedArtifact);
|
||||
|
||||
Reference in New Issue
Block a user