In summary, long-term cognitive impairment of mice in the visual discrimination task was aggravated in the absence of TLR2/4 signalling during acute pneumococcal meningitis. The gene discussed is TLR2; the disease is pneumococcal meningitis.