These findings suggest that IL-22 mediates early antifungal resistance, whereas IDO1 is required to restrain inflammation during ongoing infection and to provide antifungal memory. Here, IDO1 is linked to infection.