Add forceDisableCache

This commit is contained in:
Alexander Xia committed 2020-08-16 21:07:22 +08:00
1 parent f64af50a07
commit b64700b9fb
4 files changed
+17 -11

No files matched your search

@@ -60,7 +60,7 @@ public class MojangAPILoader implements ProfileLoader.IProfileLoader {
HttpResponce responce = HttpRequestUtil.makeHttpRequest(
new HttpRequest(apiRoot + "profiles/minecraft")
.setCacheTime(-1).setPayload(gson.toJson(Collections.singletonList(username)))
.setCacheTime(600).setPayload(gson.toJson(Collections.singletonList(username)))
);
if (StringUtils.isEmpty(responce.content))
return null;