diff options
author | Urban Müller | 2016-01-26 16:30:26 +0100 |
---|---|---|
committer | Urban Müller | 2016-01-26 16:30:26 +0100 |
commit | 7510bfaffde1b5d1abcdff60734936401601fc05 (patch) | |
tree | 2971eb15145ffae73a123fc9b92edbe12b65be9f | |
parent | 2e9e40bca784bda35606deadea8a4ddeaef02e94 (diff) | |
download | itools-7510bfaffde1b5d1abcdff60734936401601fc05.tar.gz itools-7510bfaffde1b5d1abcdff60734936401601fc05.tar.bz2 itools-7510bfaffde1b5d1abcdff60734936401601fc05.zip |
clean up at lower peak
-rw-r--r-- | it_url.class | 2 |
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); |