mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
lazyWrite方法调用Cache的inc方法时参数多余
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user