Fixed: Application and Release Cache Improvements

This commit is contained in:
Qstick
2021-04-18 00:51:02 -04:00
parent b14e87cd3d
commit bf92901661
5 changed files with 14 additions and 4 deletions

View File

@@ -117,7 +117,9 @@ namespace NzbDrone.Core.Applications.Sonarr
private SonarrIndexer BuildSonarrIndexer(IndexerDefinition indexer, DownloadProtocol protocol, int id = 0)
{
var schemas = _schemaCache.Get(Definition.Settings.ToJson(), () => _sonarrV3Proxy.GetIndexerSchema(Settings), TimeSpan.FromDays(7));
var cacheKey = $"{Settings.BaseUrl}";
var schemas = _schemaCache.Get(cacheKey, () => _sonarrV3Proxy.GetIndexerSchema(Settings), TimeSpan.FromDays(7));
var newznab = schemas.Where(i => i.Implementation == "Newznab").First();
var torznab = schemas.Where(i => i.Implementation == "Torznab").First();