增加 pinned 方法,去除 用户 ID 缓存

This commit is contained in:
iVampireSP.com 2022-09-18 16:26:20 +08:00
parent fb0510ada9
commit b895b18173
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -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();
});
}