Use separate cache to make sure we don't loose the cache on abort.

This commit is contained in:
Reinhard Pointner 2019-02-14 17:10:52 +07:00
parent 6aa65ce3d6
commit afe75b430a
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public class License {
}
private static void verifyLicense(String id, String psm) throws Exception {
Cache cache = CacheManager.getInstance().getCache("data", CacheType.Persistent);
Cache cache = CacheManager.getInstance().getCache("license", 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) {