]> git.openstreetmap.org Git - chef.git/commitdiff
Find more candidates for tile expiry
authorTom Hughes <tom@compton.nu>
Fri, 18 Sep 2015 23:05:03 +0000 (00:05 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 18 Sep 2015 23:05:03 +0000 (00:05 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

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