mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
替换 time() 为 $_SERVER['REQUEST_TIME']
This commit is contained in:
@@ -62,7 +62,7 @@ class File
|
||||
if (!file_exists($cacheFile)) {
|
||||
return false;
|
||||
}
|
||||
if (0 != $cacheTime && time() > filemtime($cacheFile) + $cacheTime) {
|
||||
if (0 != $cacheTime && $_SERVER['REQUEST_TIME'] > filemtime($cacheFile) + $cacheTime) {
|
||||
// 缓存是否在有效期
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user