mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-15 22:22:22 +01:00
Cleanup cache window increase to 30 again
This commit is contained in:
parent
f2699d7e03
commit
0e6471c567
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue