File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/org/maxgamer/quickshop/util Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,18 @@ public class HttpUtil {
3737 protected static final com .google .common .cache .Cache <String , String > requestCachePool = CacheBuilder .newBuilder ()
3838 .expireAfterWrite (7 , TimeUnit .DAYS )
3939 .build ();
40- private static final File cacheFolder = Util . getCacheFolder ();
40+ private static final File cacheFolder = getCacheFolder ();
4141 private static OkHttpClient client = new OkHttpClient .Builder ().cache (new Cache (cacheFolder , 50L * 1024L * 1024L )).build ();
4242
4343 private static volatile boolean shutdown = false ;
4444
45+ @ NotNull
46+ private static File getCacheFolder () {
47+ File file = new File (Util .getCacheFolder (), "okhttp_tmp" );
48+ file .mkdirs ();
49+ return file ;
50+ }
51+
4552 @ Deprecated
4653 public static HttpUtil create () {
4754 return new HttpUtil ();
You can’t perform that action at this time.
0 commit comments