mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
increase the scheduler cache timeframe to avoid losing cache when the remote api endpoints go offline (due to a reboot or some other reason) -- if they're online, the cache will get refreshed every 10 minutes like normal
This commit is contained in:
parent
121465210d
commit
508baeec04
5 changed files with 18 additions and 6 deletions
|
@ -62,8 +62,11 @@ namespace PlexRequests.Services.Jobs
|
|||
if (settings.Enabled)
|
||||
{
|
||||
Log.Trace("Getting all shows from SickRage");
|
||||
var movies = SrApi.GetShows(settings.ApiKey, settings.FullUri);
|
||||
Cache.Set(CacheKeys.SickRageQueued, movies.Result, CacheKeys.TimeFrameMinutes.SchedulerCaching);
|
||||
var shows = SrApi.GetShows(settings.ApiKey, settings.FullUri);
|
||||
if (shows != null)
|
||||
{
|
||||
Cache.Set(CacheKeys.SickRageQueued, shows.Result, CacheKeys.TimeFrameMinutes.SchedulerCaching);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue