From 321230e3e3eec7121ef408a922b31ebc7b8f48e0 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 29 Dec 2015 15:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E6=9B=B4=E6=96=B0=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E6=94=B9=E8=BF=9B=20=E9=81=BF=E5=85=8D=E5=8F=97?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=97=B6=E9=97=B4=E8=AE=BE=E7=BD=AE=E5=BD=B1?= =?UTF-8?q?=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/model.php b/library/think/model.php index afeb7fc4..4148e5b4 100644 --- a/library/think/model.php +++ b/library/think/model.php @@ -720,14 +720,14 @@ class Model return $value + $step; } else { // 追加数据到缓存 - Cache::set($guid, $value + $step); + Cache::set($guid, $value + $step, 0); return false; } } else { // 没有缓存数据 - Cache::set($guid, $step); + Cache::set($guid, $step, 0); // 计时开始 - Cache::set($guid . '_time', NOW_TIME); + Cache::set($guid . '_time', NOW_TIME, 0); return false; } }