summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2008-06-03 18:38:58 +0000
committerUrban Müller2008-06-03 18:38:58 +0000
commit310e7fc18afcb5a7e3bfe975ff577939286eda43 (patch)
treeedaf1ae0aa963bce00b593b7729c50d0ea6fb514 /it_url.class
parent5d6c3bf1cb8a2742362fd30121566e1e51db642c (diff)
downloaditools-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.class2
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);