mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Don't load plugin routes if routes are cached
This commit is contained in:
parent
cd7777294d
commit
261a6272bf
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user