Macrophages control intracellular pathogens like Salmonella by using two caspase enzymes at different times during infection.