Cleanup cache window increase to 30 again

This commit is contained in:
Arne 2024-12-12 11:03:48 +01:00
parent 5973b48a1a
commit 11e689c561

View file

@ -808,7 +808,7 @@ public class XmppConnectionService extends Service {
for (File file : Files.fileTraverser().breadthFirst(getCacheDir())) {
if (file.isFile() && file.canRead() && file.canWrite()) {
final var attrs = java.nio.file.Files.readAttributes(file.toPath(), java.nio.file.attribute.BasicFileAttributes.class);
if ((now - attrs.lastAccessTime().toMillis()) > 1000L * 60 * 60 * 24 * 10) {
if ((now - attrs.lastAccessTime().toMillis()) > 1000L * 60 * 60 * 24 * 30) {
Log.d(Config.LOGTAG, "cleanupCache removing file not used recently: " + file);
file.delete();
}