Ip\Internal\Email\Db::delteOldSent PHP Method

delteOldSent() public static method

public static delteOldSent ( $hours )
    public static function delteOldSent($hours)
    {
        $table = ipTable('email_queue');
        $sql = "delete from {$table} where `send` is not NULL and " . ipDb()->sqlMinAge('send', $hours, 'HOUR');
        return ipDb()->execute($sql);
    }