From 1d91160521b9f9a844b93ee64fb7d54fc110687d Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 27 Feb 2017 22:08:52 +0800 Subject: [PATCH] Cache OMDb resources for up to a month --- source/net/filebot/web/OMDbClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/web/OMDbClient.java b/source/net/filebot/web/OMDbClient.java index 4bdb78d4..ea16facb 100644 --- a/source/net/filebot/web/OMDbClient.java +++ b/source/net/filebot/web/OMDbClient.java @@ -125,7 +125,7 @@ public class OMDbClient implements MovieIdentificationService { } public Object request(Map parameters) throws Exception { - Cache cache = Cache.getCache(getName(), CacheType.Weekly); + Cache cache = Cache.getCache(getName(), CacheType.Monthly); String key = '?' + encodeParameters(parameters, true); return cache.json(key, s -> getResource(s)).fetch(withPermit(fetchIfModified(), r -> REQUEST_LIMIT.acquirePermit())).expire(Cache.ONE_WEEK).get();