Blocking the TNFα pathway attenuates S-DEP-induced memory impairment. Here, TNF is linked to memory impairment.