From 310e7fc18afcb5a7e3bfe975ff577939286eda43 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 3 Jun 2008 18:38:58 +0000 Subject: use local times for cleanup --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') 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); -- cgit v1.2.3