Cachefile lives now for at least 7 days
authorAlexander Oppermann <a.oppermann@bgbm.org>
Tue, 22 Apr 2014 13:23:23 +0000 (13:23 +0000)
committerAlexander Oppermann <a.oppermann@bgbm.org>
Tue, 22 Apr 2014 13:23:23 +0000 (13:23 +0000)
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/checklist/ChecklistDemoController.java

index caa6e80f272f8c38e7dc13441e672658149203c3..a185d66d31e76c6fbd7dd495343c7ffba8db46fa 100644 (file)
@@ -236,7 +236,7 @@ public class ChecklistDemoController extends AbstractController implements Resou
         }\r
         //if file exists return file instantly\r
         //timestamp older than one day?\r
         }\r
         //if file exists return file instantly\r
         //timestamp older than one day?\r
-        if(clearCache == false && result != null && result < DAY_IN_MILLIS){\r
+        if(clearCache == false && result != null && result < 7*(DAY_IN_MILLIS)){\r
             logger.info("result of calculation: " + result);\r
             Map<String, File> modelMap = new HashMap<String, File>();\r
             modelMap.put("file", cacheFile);\r
             logger.info("result of calculation: " + result);\r
             Map<String, File> modelMap = new HashMap<String, File>();\r
             modelMap.put("file", cacheFile);\r