增强请求缓存功能 支持全局配置 增加request_cache配置参数 增加特殊缓存规则定义 如果同一次请求存在多次请求缓存调用 则第一次有效

This commit is contained in:
thinkphp
2016-11-01 17:51:38 +08:00
parent 7a0d53d071
commit 57f206b757
3 changed files with 26 additions and 4 deletions

View File

@@ -115,6 +115,8 @@ class App
// 进行URL路由检测
$dispatch = self::routeCheck($request, $config);
}
// 请求缓存检查
$request->cache($config['request_cache']);
// 记录当前调度信息
$request->dispatch($dispatch);