Here, we report that the optogenetic selective inhibition of PL-mPFC local CaMKIIα-eNpHR3.0-expressing neurons during the WM task delay-period reduces pain-related cognitive deficits, and enhances prefrontal-hippocampal theta frequency-band connectivity during behavioral performance. Here, CAMK2A is linked to Cognitive impairment.