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 eebcd41..de696c6 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: $!";