diff options
Diffstat (limited to 'apis/cron.inc.php')
-rw-r--r-- | apis/cron.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apis/cron.inc.php b/apis/cron.inc.php index 3553abdb..318fb67f 100644 --- a/apis/cron.inc.php +++ b/apis/cron.inc.php @@ -23,6 +23,12 @@ case 3: case 4: Database::exec("DELETE FROM callback WHERE (UNIX_TIMESTAMP() - dateline) > 86400"); break; +case 5: + Database::exec("DELETE FROM statistic WHERE (UNIX_TIMESTAMP() - dateline) > 86400 * 90"); + break; +case 6: + Database::exec("DELETE FROM machine WHERE (UNIX_TIMESTAMP() - lastseen) > 86400 * 365"); + break; } Trigger::checkCallbacks(); |