From f264bdfbd84751d7474cac4895a8958fa13d50fe Mon Sep 17 00:00:00 2001 From: phpu Date: Sun, 31 Dec 2017 23:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=9C=A8=E9=95=BF=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E6=97=B6=E8=BF=87=E6=9C=9F=E6=97=A0=E6=95=88=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/driver/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/cache/driver/File.php b/library/think/cache/driver/File.php index 52243a47..fb857b90 100644 --- a/library/think/cache/driver/File.php +++ b/library/think/cache/driver/File.php @@ -109,7 +109,7 @@ class File extends Driver $content = file_get_contents($filename); if (false !== $content) { $expire = (int) substr($content, 8, 12); - if (0 != $expire && $_SERVER['REQUEST_TIME'] > filemtime($filename) + $expire) { + if (0 != $expire && time() > filemtime($filename) + $expire) { return $default; } $content = substr($content, 32);