mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 11:39:19 -05:00
update: use cache()->flexible() to improve response times
This commit is contained in:
@@ -150,7 +150,7 @@ class RssController extends Controller
|
||||
if (\is_object($search)) {
|
||||
$cacheKey = 'rss:'.$rss->id;
|
||||
|
||||
$torrents = cache()->remember($cacheKey, 300, function () use ($search) {
|
||||
$torrents = cache()->flexible($cacheKey, [60 * 5, 60 * 6], function () use ($search) {
|
||||
$filters = new TorrentSearchFiltersDTO(
|
||||
name: $search->search ?? '',
|
||||
description: $search->description ?? '',
|
||||
|
||||
Reference in New Issue
Block a user