From 7510bfaffde1b5d1abcdff60734936401601fc05 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 26 Jan 2016 16:30:26 +0100 Subject: clean up at lower peak --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_url.class b/it_url.class index ab1f90f..6f804e2 100644 --- a/it_url.class +++ b/it_url.class @@ -645,7 +645,7 @@ function get_cache($p = array()) } # cache cleanup at night - if ((date('H')*3600 + date('i')*60 < $p['cleanbefore']) && (time()-@filemtime($p['cachedir'] . "/cleaned") > 80000)) + if (date('H') >= 1 && (date('H')*3600 + date('i')*60 < $p['cleanbefore']) && (time()-@filemtime($p['cachedir'] . "/cleaned") > 80000)) { touch($p['cachedir'] . "/cleaned"); $maxagemin = intval($p['maxage']/60); -- cgit v1.2.3