It is recommended to refrigerate the cheesecake for at least 2 hours, preferably overnight, to allow it to set properly.