Cache Definitions in AppData Folder

pull/6/head
Qstick 4 years ago
parent 8df370ffb1
commit 67d75fcff9

@ -96,7 +96,7 @@ namespace NzbDrone.Core.IndexerVersions
EnsureDefinitionsFolder(); EnsureDefinitionsFolder();
var definitionFolder = Path.Combine(_appFolderInfo.StartUpFolder, "Definitions"); var definitionFolder = Path.Combine(_appFolderInfo.AppDataFolder, "Definitions");
var directoryInfo = new DirectoryInfo(definitionFolder); var directoryInfo = new DirectoryInfo(definitionFolder);
@ -135,7 +135,7 @@ namespace NzbDrone.Core.IndexerVersions
private void EnsureDefinitionsFolder() private void EnsureDefinitionsFolder()
{ {
var definitionFolder = Path.Combine(_appFolderInfo.StartUpFolder, "Definitions"); var definitionFolder = Path.Combine(_appFolderInfo.AppDataFolder, "Definitions");
_diskProvider.CreateFolder(definitionFolder); _diskProvider.CreateFolder(definitionFolder);
} }
@ -149,7 +149,7 @@ namespace NzbDrone.Core.IndexerVersions
{ {
try try
{ {
var startupFolder = _appFolderInfo.StartUpFolder; var startupFolder = _appFolderInfo.AppDataFolder;
EnsureDefinitionsFolder(); EnsureDefinitionsFolder();

@ -61,7 +61,7 @@ namespace NzbDrone.Core.Jobs
new ScheduledTask { Interval = 6 * 60, TypeName = typeof(ApplicationCheckUpdateCommand).FullName }, new ScheduledTask { Interval = 6 * 60, TypeName = typeof(ApplicationCheckUpdateCommand).FullName },
new ScheduledTask { Interval = 6 * 60, TypeName = typeof(CheckHealthCommand).FullName }, new ScheduledTask { Interval = 6 * 60, TypeName = typeof(CheckHealthCommand).FullName },
new ScheduledTask { Interval = 24 * 60, TypeName = typeof(HousekeepingCommand).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 { Interval = 6 * 60, TypeName = typeof(ApplicationIndexerSyncCommand).FullName },
new ScheduledTask new ScheduledTask

Loading…
Cancel
Save