From 7066055acc2b1b7c7160eb4e3b9c814569b7466e Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 28 Jan 2016 14:11:17 +0100 Subject: simplify --- 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 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 2>&1 &"); + exec("nohup bash -c 'cd {$p['cachedir']} && for i in ??; do sleep 20; find \$i -mmin +$maxagemin -delete; done' /dev/null 2>&1 &"); } if (EDC('getcachelog')) -- cgit v1.2.3