Cupcakes need to be refrigerated when they are frosting contains dairy or eggs or if the cupcakes are filled with a custard. Since these cupcakes contain both ricotta and mascarpone cheese, they need to be refrigerated before serving.