mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
update: rss cache key
RSS feed caching should be done by id, not by user, otherwise it wouldn't be cached when multiple users use the same feed.
This commit is contained in:
@@ -165,7 +165,7 @@ class RssController extends Controller
|
||||
|
||||
$search = $rss->object_torrent;
|
||||
|
||||
$cacheKey = \md5(\sprintf('%s.%s.%s', $rss->id, $user->id, $user->rsskey));
|
||||
$cacheKey = 'rss:'.$rss->id;
|
||||
|
||||
$torrents = \cache()->remember($cacheKey, 300, function () use ($search, $user) {
|
||||
return Torrent::with('user', 'category', 'type', 'resolution')
|
||||
|
||||
Reference in New Issue
Block a user