mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
延迟更新方法改进 避免受缓存时间设置影响
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user