mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
core: Add torznab cache option for individual indexers (#12235)
This commit is contained in:
@@ -390,9 +390,12 @@ namespace Jackett.Common.Indexers
|
||||
if (!CanHandleQuery(query) || !CanHandleCategories(query, isMetaIndexer))
|
||||
return new IndexerResult(this, new ReleaseInfo[0], false);
|
||||
|
||||
var cachedReleases = cacheService.Search(this, query);
|
||||
if (cachedReleases != null)
|
||||
return new IndexerResult(this, cachedReleases, true);
|
||||
if (query.Cache)
|
||||
{
|
||||
var cachedReleases = cacheService.Search(this, query);
|
||||
if (cachedReleases != null)
|
||||
return new IndexerResult(this, cachedReleases, true);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user