Skip to content

Commit 3873b3a

Browse files
committed
Add okhttp cache for CrowdinOTA module
1 parent bc951dd commit 3873b3a

File tree

1 file changed

+1
-3
lines changed
  • src/main/java/org/maxgamer/quickshop/util/language/text/distributions/crowdin

1 file changed

+1
-3
lines changed

src/main/java/org/maxgamer/quickshop/util/language/text/distributions/crowdin/CrowdinOTA.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ public class CrowdinOTA implements Distribution {
3636
.recordStats()
3737
.build();
3838
private final QuickShop plugin;
39-
// private final File cacheFolder;
40-
// private final okhttp3.Cache cache;
4139
private final OkHttpClient client;
42-
// private final OkHttpClient clientNoCache;
4340

4441
public CrowdinOTA(QuickShop plugin) {
4542
this.plugin = plugin;
4643
Util.getCacheFolder().mkdirs();
4744
this.client = new OkHttpClient.Builder()
45+
.cache(new okhttp3.Cache(new File(Util.getCacheFolder(), "okhttp"), 50L * 1024L * 1024L))
4846
.build();
4947

5048
}

0 commit comments

Comments
 (0)