Which Jenkins file is responsible for Enable cache setting
Add the following lines in /var/lib/jenkins/config.xml under securityRealm and then restart jenkins service to enable cache. Remove the below 4 line if you don't want to enable it.

&lt;cache&gt;
  &lt;size&gt;500&lt;/size&gt;
  &lt;ttl&gt;3600&lt;/ttl&gt;
&lt;/cache&gt;


Please refer the below image