]> git.openstreetmap.org Git - chef.git/commitdiff
Reduce the cutoff time when looking for tiles to expire
authorTom Hughes <tom@compton.nu>
Mon, 16 Sep 2013 12:59:13 +0000 (13:59 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 16 Sep 2013 12:59:13 +0000 (13:59 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

index 73baaffd9133cacca2945cc14524a8733903a882..cd8696ac48e65dcdfdc226009201a5d3e56a07ba 100644 (file)
@@ -13,7 +13,7 @@ my $tempfile = tmpnam();
 
 if (df($tiledir)->{per} > 90)
 {
-    system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+60", "-fprintf", $tempfile, "%A@ %p\n");
+    system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+45", "-fprintf", $tempfile, "%A@ %p\n");
 
     open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";