summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2016-01-28 14:11:17 +0100
committerUrban Müller2016-01-28 14:11:17 +0100
commit7066055acc2b1b7c7160eb4e3b9c814569b7466e (patch)
tree9e9f27849d7dd204da00dcf4231856beae7baa35 /it_url.class
parent1f0dd5e96e943a6b7be1ef6cfb6bbf69363ebf8c (diff)
downloaditools-7066055acc2b1b7c7160eb4e3b9c814569b7466e.tar.gz
itools-7066055acc2b1b7c7160eb4e3b9c814569b7466e.tar.bz2
itools-7066055acc2b1b7c7160eb4e3b9c814569b7466e.zip
simplify
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 e93fcac..3f91b8a 100644
--- a/it_url.class
+++ b/it_url.class
@@ -649,7 +649,7 @@ function get_cache($p = array())
{
touch($p['cachedir'] . "/cleaned");
$maxagemin = intval($p['maxage']/60);
- exec("nohup bash -c 'cd {$p['cachedir']} && for i in ??; do sleep 20; find \$i -mmin +$maxagemin | xargs -r rm; done' </dev/null >/dev/null 2>&1 &");
+ exec("nohup bash -c 'cd {$p['cachedir']} && for i in ??; do sleep 20; find \$i -mmin +$maxagemin -delete; done' </dev/null >/dev/null 2>&1 &");
}
if (EDC('getcachelog'))