mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-07 11:40:56 -05:00
update: announce
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user