]> git.openstreetmap.org Git - chef.git/commitdiff
Adjust tile expiry thresholds
authorTom Hughes <tom@compton.nu>
Thu, 4 Aug 2016 20:13:45 +0000 (21:13 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 4 Aug 2016 20:13:45 +0000 (21:13 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

index 5766b84cb3c43ecf823fbd5bbc55623eba3ca110..eb108e95e7d0c13f25034c02d1bc4c0c535a30e4 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", "+5", "-fprintf", $tempfile, "%A@ %p\n");
+    system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+3", "-fprintf", $tempfile, "%A@ %p\n");
 
     open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";