Find more candidates for tile expiry
authorTom Hughes <tom@compton.nu>
Wed, 18 Mar 2015 08:33:17 +0000 (08:33 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 18 Mar 2015 08:33:17 +0000 (08:33 +0000)
cookbooks/tile/templates/default/cleanup-tiles.erb

index c92e538..b0a6a74 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", "+14", "-fprintf", $tempfile, "%A@ %p\n");
+    system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+10", "-fprintf", $tempfile, "%A@ %p\n");
 
     open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";