调试模式下关闭路由解析缓存

This commit is contained in:
张亚俊
2018-09-04 17:18:48 +08:00
parent 60e38a040b
commit ab826da071

View File

@@ -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);