]> git.openstreetmap.org Git - chef.git/commitdiff
Reduce tile expiry cutoff time to 28 days
authorTom Hughes <tom@compton.nu>
Tue, 14 Jan 2014 09:15:23 +0000 (09:15 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 14 Jan 2014 10:42:27 +0000 (10:42 +0000)
cookbooks/tile/templates/default/cleanup-tiles.erb

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