update: announce

This commit is contained in:
HDVinnie
2023-01-23 21:31:51 -05:00
parent ab7fab7485
commit 85ab302611
20 changed files with 33 additions and 56 deletions
+1 -4
View File
@@ -54,10 +54,7 @@ class HomeController extends Controller
}
// Latest Torrents Block
$personalFreeleech = \cache()->rememberForever(
'personal_freeleech:'.$user->id,
fn () => $user->personalFreeleeches()->exists()
);
$personalFreeleech = \cache()->get('personal_freeleech:'.$user->id);
$newest = \cache()->remember('newest_torrents', $expiresAt, fn () => Torrent::with(['user', 'category', 'type', 'resolution'])
->withCount(['thanks', 'comments'])