]> git.openstreetmap.org Git - chef.git/commitdiff
Consider all tiles over two days old for expiry
authorTom Hughes <tom@compton.nu>
Tue, 29 Dec 2020 17:49:24 +0000 (17:49 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 29 Dec 2020 17:50:33 +0000 (17:50 +0000)
cookbooks/tile/templates/default/cleanup-tiles.erb

index eb108e95e7d0c13f25034c02d1bc4c0c535a30e4..721660bb16795b234bf5779c91e76b099578f11d 100644 (file)
@@ -20,7 +20,7 @@ my $tempfile = tmpnam();
 
 if (df($tiledir)->{per} > 88)
 {
-    system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+3", "-fprintf", $tempfile, "%A@ %p\n");
+    system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+2", "-fprintf", $tempfile, "%A@ %p\n");
 
     open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";