diff options
author | Urban Müller | 2015-10-16 15:46:21 +0200 |
---|---|---|
committer | Urban Müller | 2015-10-16 15:46:21 +0200 |
commit | 65cfeaef1fd38b5494238ea039655c7623d7b4cd (patch) | |
tree | 483555f561ad284358f8772c82d42f30537e05b5 | |
parent | cbe302c4d849dcc1b27a9cfecf1ce46a80572c04 (diff) | |
download | itools-65cfeaef1fd38b5494238ea039655c7623d7b4cd.tar.gz itools-65cfeaef1fd38b5494238ea039655c7623d7b4cd.tar.bz2 itools-65cfeaef1fd38b5494238ea039655c7623d7b4cd.zip |
more compact getcache debug output
-rw-r--r-- | it_url.class | 4 |
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; } |