Reduce tile expiry cutoff time to 28 days
authorTom Hughes <tom@compton.nu>
Tue, 17 Sep 2013 07:31:34 +0000 (08:31 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 17 Sep 2013 07:31:34 +0000 (08:31 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

index 5c914f3bbd8a7281e661bf220f372218554f957d..8a2c062be8a8a968f9f2c967cfb0fc4db310444f 100644 (file)
@@ -13,7 +13,7 @@ my $tempfile = tmpnam();
 
 if (df($tiledir)->{per} > 90)
 {
-    system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+45", "-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: $!";