From ba21d222132e8ef2c09c609b2fca42d6b1e6ea2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E5=B9=B3=E5=87=A1?= Date: Tue, 21 Mar 2017 14:05:02 +0800 Subject: [PATCH] =?UTF-8?q?lazyWrite=E6=96=B9=E6=B3=95=E8=B0=83=E7=94=A8Ca?= =?UTF-8?q?che=E7=9A=84inc=E6=96=B9=E6=B3=95=E6=97=B6=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=A4=9A=E4=BD=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index f0f0ec39..66e7c262 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -651,16 +651,16 @@ class Query if (!Cache::has($guid . '_time')) { // 计时开始 Cache::set($guid . '_time', $_SERVER['REQUEST_TIME'], 0); - Cache::$type($guid, $step, 0); + Cache::$type($guid, $step); } elseif ($_SERVER['REQUEST_TIME'] > Cache::get($guid . '_time') + $lazyTime) { // 删除缓存 - $value = Cache::$type($guid, $step, 0); + $value = Cache::$type($guid, $step); Cache::rm($guid); Cache::rm($guid . '_time'); return 0 === $value ? false : $value; } else { // 更新缓存 - Cache::$type($guid, $step, 0); + Cache::$type($guid, $step); } return false; }