Add monthly views chart
This commit is contained in:
@@ -60,13 +60,6 @@ class CacheHelper
|
||||
});
|
||||
}
|
||||
|
||||
public static function getTotalMonthlyViews()
|
||||
{
|
||||
return Cache::remember("total_monthly_view_count", now()->addMinutes(60), function () {
|
||||
return PopularMonthly::count();
|
||||
});
|
||||
}
|
||||
|
||||
public static function getPopularAllTime(bool $guest)
|
||||
{
|
||||
$guestString = $guest ? 'guest' : 'authed';
|
||||
|
Reference in New Issue
Block a user