mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 05:52:48 +08:00
请求缓存标识支持传入__URL__ 表示当前url地址作为缓存标识进行请求缓存
This commit is contained in:
@@ -1483,6 +1483,9 @@ class Request
|
||||
$key = str_replace(':' . $item, $val, $key);
|
||||
}
|
||||
}
|
||||
} elseif ('__URL__' == $key) {
|
||||
// 当前URL地址作为缓存标识
|
||||
$key = $this->url();
|
||||
}
|
||||
if (Cache::has($key)) {
|
||||
// 读取缓存
|
||||
|
||||
Reference in New Issue
Block a user