From: Tom Hughes Date: Mon, 16 Sep 2013 12:59:13 +0000 (+0100) Subject: Reduce the cutoff time when looking for tiles to expire X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/55ddc5ad47a565d50f805272a60f238fae51aaf4 Reduce the cutoff time when looking for tiles to expire --- diff --git a/cookbooks/tile/templates/default/cleanup-tiles.erb b/cookbooks/tile/templates/default/cleanup-tiles.erb index 73baaffd9..cd8696ac4 100644 --- a/cookbooks/tile/templates/default/cleanup-tiles.erb +++ b/cookbooks/tile/templates/default/cleanup-tiles.erb @@ -13,7 +13,7 @@ my $tempfile = tmpnam(); if (df($tiledir)->{per} > 90) { - system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+60", "-fprintf", $tempfile, "%A@ %p\n"); + system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+45", "-fprintf", $tempfile, "%A@ %p\n"); open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";