fix the cacher by adding locking + extra logging in the plex checker + use a const key for scheduler caching time

This commit is contained in:
Drewster727 2016-04-19 13:41:56 -05:00
commit 121465210d
6 changed files with 29 additions and 11 deletions

View file

@ -63,7 +63,7 @@ namespace PlexRequests.Services.Jobs
{
Log.Trace("Getting all movies from CouchPotato");
var movies = CpApi.GetMovies(settings.FullUri, settings.ApiKey, new[] { "active" });
Cache.Set(CacheKeys.CouchPotatoQueued, movies, 10);
Cache.Set(CacheKeys.CouchPotatoQueued, movies, CacheKeys.TimeFrameMinutes.SchedulerCaching);
}
}