summaryrefslogtreecommitdiffstats
path: root/modules-available/syslog/hooks/cron.inc.php
blob: bae882a97f4311d0088646cde437e62799f4bf18 (plain) (blame)
1
2
3
4
5
6
7
8
<?php

if (mt_rand(1, 10) === 1) {
	Database::exec("DELETE FROM clientlog WHERE (UNIX_TIMESTAMP() - 86400 * 190) > dateline");
	if (mt_rand(1, 100) === 1) {
		Database::exec("OPTIMIZE TABLE clientlog");
	}
}