diff options
Diffstat (limited to 'modules-available/eventlog/hooks')
-rw-r--r-- | modules-available/eventlog/hooks/cron.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/eventlog/hooks/cron.inc.php b/modules-available/eventlog/hooks/cron.inc.php new file mode 100644 index 00000000..027acf87 --- /dev/null +++ b/modules-available/eventlog/hooks/cron.inc.php @@ -0,0 +1,5 @@ +<?php + +if (mt_rand(1, 10) === 1) { + Database::exec("DELETE FROM eventlog WHERE (UNIX_TIMESTAMP() - dateline) > 86400 * 190"); +}
\ No newline at end of file |