public function deleteOldUnreadAlerts($dateCut = null)
{
/*if ($dateCut === null)
{
$dateCut = XenForo_Application::$time - 30 * 86400;
}*/
$dateCut = XenForo_Application::$time - 100 * 86400;
$db = $this->_getDb();
$db->delete('xf_user_alert', 'view_date = 0 AND event_date < '. $db->quote($dateCut));
}