增加 pinned 方法,去除 用户 ID 缓存
This commit is contained in:
parent
fb0510ada9
commit
b895b18173
@ -51,7 +51,7 @@ public function cache(Closure $callback)
|
||||
// 获取调用方法名
|
||||
$method = debug_backtrace()[1]['function'];
|
||||
|
||||
return Cache::remember('forum.func.' . $method . '.user_' . auth()->id(), 60, function () use ($callback) {
|
||||
return Cache::remember('forum.func.' . $method, 60, function () use ($callback) {
|
||||
return $callback();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user