mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 08:39:12 +00:00
[TASK] Removed invalid cache clearing
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user