Chains like McDonald's almost certainly don't cut their French fries onsite, they'd get them delivered already cut and frozen.
Sometimes putting something in a fridge or a freezer is part of the cooking process, but there's all this stigma around it and bonus points given to things for being "fresh." Fries that get chilled between rounds of cooking are part of what changes them from "deep fried potato" to "french fry".
Five Guys and that peanut oil though.. that's the stuff.