diff --git a/webcron.php b/webcron.php index 20a8109..9a12cf6 100644 --- a/webcron.php +++ b/webcron.php @@ -105,7 +105,7 @@ foreach ($results as $result) { $nosave = false; } -clean_database(); +if (get_configvalue('dbclean.lastrun') + (60 * 60 * 24 * get_configvalue('dbclean.delay')) < time()) clean_database(); unlink('/tmp/webcron.lock');