]> git.openstreetmap.org Git - chef.git/commitdiff
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 c92e538784ac0552fa7926daa35326ba4e4329e6..b0a6a7419775b11cad211a47849741f4a3cb13f4 100644 (file)
@@ -19,7 +19,7 @@ my $tempfile = tmpnam();
 
 if (df($tiledir)->{per} > 90)
 {
 
 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: $!";
 
 
     open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";