mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
调试模式下关闭路由解析缓存
This commit is contained in:
@@ -836,7 +836,7 @@ class Route
|
||||
public static function check($request, $url, $depr = '/', $checkDomain = false)
|
||||
{
|
||||
//检查解析缓存
|
||||
if (Config::get('route_check_cache')) {
|
||||
if (!App::$debug && Config::get('route_check_cache')) {
|
||||
$key = self::getCheckCacheKey($request);
|
||||
if (Cache::has($key)) {
|
||||
list($rule, $route, $pathinfo, $option, $matches) = Cache::get($key);
|
||||
|
||||
Reference in New Issue
Block a user