diff --git a/app/View/Composers/StatsComposer.php b/app/View/Composers/StatsComposer.php index 915e3de..bd1bed3 100644 --- a/app/View/Composers/StatsComposer.php +++ b/app/View/Composers/StatsComposer.php @@ -10,8 +10,10 @@ class StatsComposer { public function compose(View $view) { + + $seconds_to_remember = 600; // Retrieve the count from the cache or count and store it if not present - $tools_count = Cache::remember('tools_count', 600, function () { + $tools_count = Cache::remember('tools_count_' . $seconds_to_remember, $seconds_to_remember, function () { return AiTool::count(); });