mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
Unify long-term caches
This commit is contained in:
parent
580f2bd8f4
commit
6aa65ce3d6
@ -134,7 +134,7 @@ public class License {
|
||||
}
|
||||
|
||||
private static void verifyLicense(String id, String psm) throws Exception {
|
||||
Cache cache = CacheManager.getInstance().getCache("license", CacheType.Persistent);
|
||||
Cache cache = CacheManager.getInstance().getCache("data", CacheType.Persistent);
|
||||
Object json = cache.json(id, i -> new URL("https://license.filebot.net/verify/" + i)).fetch((url, modified) -> WebRequest.post(url, psm.getBytes(UTF_8), "application/octet-stream", getRequestParameters())).expire(Cache.ONE_MONTH).get();
|
||||
|
||||
if (getInteger(json, "status") != 200) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user