Find more candidates for tile expiry
authorTom Hughes <tom@compton.nu>
Fri, 18 Sep 2015 23:05:03 +0000 (00:05 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 18 Sep 2015 23:05:03 +0000 (00:05 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

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