mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
New: Cache goodreads responses
This commit is contained in:
@@ -14,6 +14,7 @@ namespace NzbDrone.Common.Extensions
|
||||
private const string DB = "readarr.db";
|
||||
private const string DB_RESTORE = "readarr.restore";
|
||||
private const string LOG_DB = "logs.db";
|
||||
private const string CACHE_DB = "cache.db";
|
||||
private const string NLOG_CONFIG_FILE = "nlog.config";
|
||||
private const string UPDATE_CLIENT_EXE_NAME = "Readarr.Update";
|
||||
|
||||
@@ -322,6 +323,11 @@ namespace NzbDrone.Common.Extensions
|
||||
return Path.Combine(GetAppDataPath(appFolderInfo), LOG_DB);
|
||||
}
|
||||
|
||||
public static string GetCacheDatabase(this IAppFolderInfo appFolderInfo)
|
||||
{
|
||||
return Path.Combine(GetAppDataPath(appFolderInfo), CACHE_DB);
|
||||
}
|
||||
|
||||
public static string GetNlogConfigPath(this IAppFolderInfo appFolderInfo)
|
||||
{
|
||||
return Path.Combine(appFolderInfo.StartUpFolder, NLOG_CONFIG_FILE);
|
||||
|
||||
Reference in New Issue
Block a user