How to disable caching in MediaWiki?

If you wish to disable caching in your MediaWiki, you should open the LocalSettings.php file and add the following lines to it:

$wgEnableParserCache = false;

$wgCachePages = false;