From 67d75fcff94baa936e941b25841c0159f7d5fda0 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 27 Dec 2020 21:38:59 -0500 Subject: [PATCH] Cache Definitions in AppData Folder --- .../IndexerVersions/IndexerDefinitionUpdateService.cs | 6 +++--- src/NzbDrone.Core/Jobs/TaskManager.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs b/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs index 90c5163f9..897214b74 100644 --- a/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs +++ b/src/NzbDrone.Core/IndexerVersions/IndexerDefinitionUpdateService.cs @@ -96,7 +96,7 @@ namespace NzbDrone.Core.IndexerVersions EnsureDefinitionsFolder(); - var definitionFolder = Path.Combine(_appFolderInfo.StartUpFolder, "Definitions"); + var definitionFolder = Path.Combine(_appFolderInfo.AppDataFolder, "Definitions"); var directoryInfo = new DirectoryInfo(definitionFolder); @@ -135,7 +135,7 @@ namespace NzbDrone.Core.IndexerVersions private void EnsureDefinitionsFolder() { - var definitionFolder = Path.Combine(_appFolderInfo.StartUpFolder, "Definitions"); + var definitionFolder = Path.Combine(_appFolderInfo.AppDataFolder, "Definitions"); _diskProvider.CreateFolder(definitionFolder); } @@ -149,7 +149,7 @@ namespace NzbDrone.Core.IndexerVersions { try { - var startupFolder = _appFolderInfo.StartUpFolder; + var startupFolder = _appFolderInfo.AppDataFolder; EnsureDefinitionsFolder(); diff --git a/src/NzbDrone.Core/Jobs/TaskManager.cs b/src/NzbDrone.Core/Jobs/TaskManager.cs index 82531fe37..0fb1c12ef 100644 --- a/src/NzbDrone.Core/Jobs/TaskManager.cs +++ b/src/NzbDrone.Core/Jobs/TaskManager.cs @@ -61,7 +61,7 @@ namespace NzbDrone.Core.Jobs new ScheduledTask { Interval = 6 * 60, TypeName = typeof(ApplicationCheckUpdateCommand).FullName }, new ScheduledTask { Interval = 6 * 60, TypeName = typeof(CheckHealthCommand).FullName }, new ScheduledTask { Interval = 24 * 60, TypeName = typeof(HousekeepingCommand).FullName }, - new ScheduledTask { Interval = 6 * 60, TypeName = typeof(IndexerDefinitionUpdateCommand).FullName }, + new ScheduledTask { Interval = 12 * 60, TypeName = typeof(IndexerDefinitionUpdateCommand).FullName }, new ScheduledTask { Interval = 6 * 60, TypeName = typeof(ApplicationIndexerSyncCommand).FullName }, new ScheduledTask