Vaccination prevents IL-1β-mediated cognitive deficits after COVID-19. Here, IL1B is linked to COVID-19.