From d384e10b385431fe647ce481c7f57ce76e43c6c7 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 2 Feb 2016 15:36:04 +0100 Subject: be nice about cache cleanup --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_url.class b/it_url.class index 3f91b8a..388798e 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 -delete; done' /dev/null 2>&1 &"); + exec("nohup bash -c 'cd {$p['cachedir']} && for i in ??; do sleep 20; ionice -c 3 find \$i -mmin +$maxagemin -delete; done' /dev/null 2>&1 &"); } if (EDC('getcachelog')) -- cgit v1.2.3