修正路由的请求缓存设置

This commit is contained in:
thinkphp
2016-11-18 12:30:19 +08:00
parent 397d09925c
commit 78dffc5b4e

View File

@@ -1496,7 +1496,7 @@ class Route
if (is_array($cache)) {
list($key, $expire) = $cache;
} else {
$key = $pathinfo;
$key = str_replace('|', '/', $pathinfo);
$expire = $cache;
}
$request->cache($key, $expire);