We’ve gotten used to thinking about dementia risk in terms of long-standing habits, shaped by how we eat, move, sleep, and, to some extent, our genetics. Things like infections rarely make that list.