diff --git a/app/Http/Controllers/ForumController.php b/app/Http/Controllers/ForumController.php index ab9a465..4431a06 100644 --- a/app/Http/Controllers/ForumController.php +++ b/app/Http/Controllers/ForumController.php @@ -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(); }); }