Bring a large pot of salted water to a boil. Cook the pasta according to package instructions. Save ¼ cup (60 ml) of pasta water, then drain.
2. Step
Add the olive oil and garlic to a large cold sauté pan. Turn the heat to medium-low and slowly heat up until the garlic is fragrant and lightly colored, about 3 minutes.
3. Step
Add the chile flakes and cook for another minute.
4. Step
Add the reserved pasta water and bring to a simmer. Add the cooked spaghetti and parsley, if using. Stir until the pasta is well-coated. Season with salt to taste.