Don't load plugin routes if routes are cached

This commit is contained in:
Luke Towers 2022-02-15 11:58:12 -06:00
parent cd7777294d
commit 261a6272bf

View File

@ -322,7 +322,7 @@ class PluginManager
* Add routes, if available
*/
$routesFile = $pluginPath . '/routes.php';
if (File::exists($routesFile)) {
if (File::exists($routesFile) && !$this->app->routesAreCached()) {
require $routesFile;
}
}