diff options
author | Urban Müller | 2008-06-03 18:38:58 +0000 |
---|---|---|
committer | Urban Müller | 2008-06-03 18:38:58 +0000 |
commit | 310e7fc18afcb5a7e3bfe975ff577939286eda43 (patch) | |
tree | edaf1ae0aa963bce00b593b7729c50d0ea6fb514 /it_url.class | |
parent | 5d6c3bf1cb8a2742362fd30121566e1e51db642c (diff) | |
download | itools-310e7fc18afcb5a7e3bfe975ff577939286eda43.tar.gz itools-310e7fc18afcb5a7e3bfe975ff577939286eda43.tar.bz2 itools-310e7fc18afcb5a7e3bfe975ff577939286eda43.zip |
use local times for cleanup
Diffstat (limited to 'it_url.class')
-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 127bd01..b96fdea 100644 --- a/it_url.class +++ b/it_url.class @@ -449,7 +449,7 @@ function get_cache($p = array()) } # cache cleanup at night - if ((time()%86400 < $p['cleanbefore']) && (time()-@filemtime($p['cachedir'] . "/cleaned") > 80000)) + if ((date('H')*3600 + date('i')*60 < $p['cleanbefore']) && (time()-@filemtime($p['cachedir'] . "/cleaned") > 80000)) { touch($p['cachedir'] . "/cleaned"); $maxagemin = intval($p['maxage']/60); |