diff options
author | Urban Müller | 2016-01-27 18:19:09 +0100 |
---|---|---|
committer | Urban Müller | 2016-01-27 18:19:09 +0100 |
commit | 97c02e6168613c03dd0166331832a41a4142ff61 (patch) | |
tree | e4c7fb14d23d74a454b57b38ee306799c117a04c /it_url.class | |
parent | 7510bfaffde1b5d1abcdff60734936401601fc05 (diff) | |
download | itools-97c02e6168613c03dd0166331832a41a4142ff61.tar.gz itools-97c02e6168613c03dd0166331832a41a4142ff61.tar.bz2 itools-97c02e6168613c03dd0166331832a41a4142ff61.zip |
throttle cache cleanup
Diffstat (limited to 'it_url.class')
-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 6f804e2..d27a809 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']} && sleep 10 && find ?? -mmin +$maxagemin -print0 | xargs -0 -r rm' </dev/null >/dev/null 2>&1 &"); + exec("nohup bash -c 'cd {$p['cachedir']} && for i in ??; do sleep 2; find \$i -mmin +$maxagemin | xargs -r rm; done' </dev/null >/dev/null 2>&1 &"); } if (EDC('getcachelog')) |