diff --git a/Common/source/customskinloader/CustomSkinLoader.java b/Common/source/customskinloader/CustomSkinLoader.java index abf4827..8ed229e 100644 --- a/Common/source/customskinloader/CustomSkinLoader.java +++ b/Common/source/customskinloader/CustomSkinLoader.java @@ -84,6 +84,8 @@ public class CustomSkinLoader { logger.info("LoadList is Empty."); return null; } + + UserProfile profile0=new UserProfile(); for(int i=0;i=TimeUtil.getCurrentUnixTimestamp()) - return loadFromCache(request,new HttpResponce()); + return loadFromCache(request,new HttpResponce(),cacheInfo.expire); } //Init Connection @@ -173,11 +173,13 @@ public class HttpRequestUtil { public static File getCacheFile(String hash){ return new File(CACHE_DIR,hash); } - private static HttpResponce loadFromCache(HttpRequest request,HttpResponce responce){ + return loadFromCache(request,responce,0); + } + private static HttpResponce loadFromCache(HttpRequest request,HttpResponce responce,long expireTime){ if(request.cacheFile==null||!request.cacheFile.isFile()) return responce; - CustomSkinLoader.logger.info("Cache file found (Length: "+request.cacheFile.length()+" , Path: '"+request.cacheFile.getAbsolutePath()+"')"); + CustomSkinLoader.logger.info("Cache file found (Length: "+request.cacheFile.length()+" , Path: '"+request.cacheFile.getAbsolutePath()+"' , Expire: "+expireTime+"')"); responce.fromCache=true; responce.success=true; if(!request.loadContent) diff --git a/build.properties b/build.properties index 2cd9caf..1afbc41 100644 --- a/build.properties +++ b/build.properties @@ -1,6 +1,6 @@ name=CustomSkinLoader group=customskinloader -version=15.1 +version=14.7 dev_version= #RELEASE: snapshot=0 snapshot=1 \ No newline at end of file