DoorDash said Thursday that it set records for orders and revenue in the second quarter, growth that came despite slowing U.S. restaurant traffic.The San Francisco-based delivery company said its total orders rose 19% to 635 million in the April-June period. That was ahead of the 625 million Wall Street expected, according to analysts polled by FactSet.DoorDash said revenue rose 23% to $2.6 billion, which also exceeded analysts’ forecast of $2.5…