From afe75b430ab9a3131c546e5990bd86b1c4ae4860 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 14 Feb 2019 17:10:52 +0700 Subject: [PATCH] Use separate cache to make sure we don't loose the cache on abort. --- source/net/filebot/License.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/License.java b/source/net/filebot/License.java index 0494a79f..715c3ab5 100644 --- a/source/net/filebot/License.java +++ b/source/net/filebot/License.java @@ -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) {