update: use cache()->flexible() to improve response times

This commit is contained in:
Roardom
2025-09-12 01:00:35 +00:00
parent 78ff837e83
commit 2a3270e748
20 changed files with 135 additions and 135 deletions
+1 -1
View File
@@ -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 ?? '',