]> git.openstreetmap.org Git - chef.git/commitdiff
Reduce tile expiry threshold to 14 days
authorTom Hughes <tom@compton.nu>
Wed, 29 Oct 2014 15:28:52 +0000 (15:28 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 29 Oct 2014 15:28:52 +0000 (15:28 +0000)
cookbooks/tile/templates/default/cleanup-tiles.erb

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