summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2015-10-16 15:46:21 +0200
committerUrban Müller2015-10-16 15:46:21 +0200
commit65cfeaef1fd38b5494238ea039655c7623d7b4cd (patch)
tree483555f561ad284358f8772c82d42f30537e05b5 /it_url.class
parentcbe302c4d849dcc1b27a9cfecf1ce46a80572c04 (diff)
downloaditools-65cfeaef1fd38b5494238ea039655c7623d7b4cd.tar.gz
itools-65cfeaef1fd38b5494238ea039655c7623d7b4cd.tar.bz2
itools-65cfeaef1fd38b5494238ea039655c7623d7b4cd.zip
more compact getcache debug output
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class
index e58ad14..0f44639 100644
--- a/it_url.class
+++ b/it_url.class
@@ -647,7 +647,7 @@ function get_cache($p = array())
exec("nohup bash -c 'cd {$p['cachedir']} && sleep 10 && find ?? -mmin +$maxagemin -print0 | xargs -0 -r rm' </dev/null >/dev/null 2>&1 &");
}
- EDC('getcache', $result, $path);
+ ### EDC('getcache', $result, $path); # too verbose
return $result ? ($p['returnheaders'] ? array($path, $headers) : $path) : false;
}
@@ -671,7 +671,7 @@ function _expired($path, $maxage)
if ($result = EDC('nocache') ? false : @filemtime($path))
{
if (time() - $result > $maxage)
- EDC('getcache', "expired", $path);
+ EDC('getcache', "expired", $maxage, $path);
else
$result = false;
}