[TASK] Removed invalid cache clearing

This commit is contained in:
JKetelaar
2017-02-03 21:02:31 +01:00
parent e18e59f502
commit 801cd9f6d1
+2 -11
View File
@@ -210,17 +210,8 @@ public class Core {
* Method that removes the cache contents after 3 days * Method that removes the cache contents after 3 days
*/ */
private static void validateCache() { private static void validateCache() {
File[] cache = Directories.getCachePath().listFiles(); // Already handled by Directories initiating
// Method will be used once BDN V3 has a functionality for this
if (cache != null) {
for (File f : cache) {
long age = new Date().getTime() - f.lastModified();
if (age > 3 * 24 * 60 * 60 * 1000) {
f.delete();
}
}
}
} }
public static void downloadNewVersion() { public static void downloadNewVersion() {