Преглед изворни кода

cache expired time exclude download_plugin

hanjing пре 7 година
родитељ
комит
0a06784744
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/src/main/java/org/afinal/simplecache/ACache.java

+ 1 - 1
app/src/main/java/org/afinal/simplecache/ACache.java

@@ -151,7 +151,7 @@ public class ACache {
         File file = mCache.get(key);
         if (!file.exists())
             return null;
-        if (System.currentTimeMillis() - file.lastModified() > TIME_HOUR) {
+        if (!key.contains("download_plugin") && System.currentTimeMillis() - file.lastModified() > TIME_HOUR/30) {
             file.deleteOnExit();
             return null;
         }