Meanwhile, heat oil over medium heat. Add anchovies, garlic, capers, and red pepper flakes and cook, stirring, until anchovies dissolve, about 2 minutes. Note: If you do this before your pasta finishes cooking, just bring it back up to a simmer before tossing it with the pasta.