public static function runDailyCleanUp()
{
$db = XenForo_Application::get('db');
// delete old thread/forum read marking data
$readMarkingCutOff = XenForo_Application::$time - (XenForo_Application::get('options')->readMarkingDataLifetime * 86400);
$db->delete('xf_thread_read', 'thread_read_date < ' . $readMarkingCutOff);
$db->delete('xf_forum_read', 'forum_read_date < ' . $readMarkingCutOff);
// delete old searches
// $db->delete('xf_search', 'search_date < ' . (XenForo_Application::$time - 86400));
}