Adjust tile expiry thresholds
authorTom Hughes <tom@compton.nu>
Thu, 4 Aug 2016 20:13:45 +0000 (21:13 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 4 Aug 2016 20:13:45 +0000 (21:13 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

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