Manual:$wgUseFileCache

Set to true to activate server-side file caching

Details
When set to true, this will cache static pages for non-logged-in users to reduce database traffic on public sites.

Must set.

Specify where you want the cache files to go in your server filesystem using. You must create the directory yourself though.

See also meta:Help:File_cache