diff options
author | Urban Müller | 2016-02-02 15:36:04 +0100 |
---|---|---|
committer | Urban Müller | 2016-02-02 15:38:01 +0100 |
commit | d384e10b385431fe647ce481c7f57ce76e43c6c7 (patch) | |
tree | c562cc5bf521d5cc1a2ee70a0ea6c6ecc9cb171e | |
parent | 7b076048688ddd20fc698d19e1921155de8c48e5 (diff) | |
download | itools-d384e10b385431fe647ce481c7f57ce76e43c6c7.tar.gz itools-d384e10b385431fe647ce481c7f57ce76e43c6c7.tar.bz2 itools-d384e10b385431fe647ce481c7f57ce76e43c6c7.zip |
be nice about cache cleanup
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
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 >/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 >/dev/null 2>&1 &"); } if (EDC('getcachelog')) |