Cakes that are made with oil, such as this green velvet cake recipe, will keep for a few days longer than cakes that are made with butter.