From: Tom Hughes Date: Tue, 29 Dec 2020 17:49:24 +0000 (+0000) Subject: Consider all tiles over two days old for expiry X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/4dc79aaa9f9cae066694284bc451f94969523038 Consider all tiles over two days old for expiry --- diff --git a/cookbooks/tile/templates/default/cleanup-tiles.erb b/cookbooks/tile/templates/default/cleanup-tiles.erb index eb108e95e..721660bb1 100644 --- a/cookbooks/tile/templates/default/cleanup-tiles.erb +++ b/cookbooks/tile/templates/default/cleanup-tiles.erb @@ -20,7 +20,7 @@ my $tempfile = tmpnam(); if (df($tiledir)->{per} > 88) { - system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+3", "-fprintf", $tempfile, "%A@ %p\n"); + system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+2", "-fprintf", $tempfile, "%A@ %p\n"); open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";