diff --git a/library/think/App.php b/library/think/App.php index aed3327e..93d9ef6f 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -115,8 +115,6 @@ class App // 进行URL路由检测 $dispatch = self::routeCheck($request, $config); } - // 请求缓存检查 - $request->cache($config['request_cache']); // 记录当前调度信息 $request->dispatch($dispatch); @@ -129,6 +127,8 @@ class App // 监听app_begin Hook::listen('app_begin', $dispatch); + // 请求缓存检查 + $request->cache($config['request_cache']); switch ($dispatch['type']) { case 'redirect':