Step 1
To a medium pot over medium-high heat, add the oil. When it’s hot and shimmering, add the capers, sun-dried tomatoes, garlic, anchovies, chiles, gherkins, and onions and cook, stirring occasionally, until the ingredients are browned, about 20 minutes. Add the tomatoes and beer and bring to a boil, then turn the heat to medium-low and simmer, stirring occasionally, until the sauce thickens, about 1½ hours. Transfer the sauce to a blender and pulse until smooth, then scrape it back into the pot and place over low heat. Stir in the olives and season to taste with salt and black pepper.
Step 2
Bring a large pot of salted water to a boil. Add the pasta and cook until al dente. Drain the pasta, reserving a little cooking water, then transfer the pasta to the sauce and toss to combine. Stir a little pasta water into the sauce to loosen if needed. Garnish with caper berries and parsley and serve.