In a large pan, add the oil and red onion, cook until soft and barely golden, about 8 minutes. Break up the tomatoes and add to the pan. Cook 6-7 minutes. Add the cabbage, salt, pepper, and red pepper flakes; cook on medium-low until the cabbage is tender. The sauce should be not too dry or too runny.