blob: 5b20b6d0f39028de4712ad476cbf51e6463a62e2 (
plain) (
tree)
|
|
<?php
switch (mt_rand(1, 10)) {
case 2:
Database::exec("DELETE FROM property_list WHERE dateline <> 0 AND dateline < UNIX_TIMESTAMP()");
break;
case 3:
Database::exec("DELETE FROM property WHERE dateline <> 0 AND dateline < UNIX_TIMESTAMP()");
break;
case 4:
Database::exec("DELETE FROM callback WHERE (UNIX_TIMESTAMP() - 86400) > dateline");
break;
default:
// Do nothing
}
Trigger::checkCallbacks();
Mailer::flushQueue();
|