summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2016-01-26 16:30:26 +0100
committerUrban Müller2016-01-26 16:30:26 +0100
commit7510bfaffde1b5d1abcdff60734936401601fc05 (patch)
tree2971eb15145ffae73a123fc9b92edbe12b65be9f
parent2e9e40bca784bda35606deadea8a4ddeaef02e94 (diff)
downloaditools-7510bfaffde1b5d1abcdff60734936401601fc05.tar.gz
itools-7510bfaffde1b5d1abcdff60734936401601fc05.tar.bz2
itools-7510bfaffde1b5d1abcdff60734936401601fc05.zip
clean up at lower peak
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
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);