It is best to give it at least a few hours. However, a better idea is to make the cheesecake part of this recipe a day in advance and let it chill overnight in the fridge. That way, it will be perfectly set and ready for you after you make the strawberry cake layers.