Knowledge Base

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / Other Applications / MediaWiki / How to disable caching in MediaWiki?

How to disable caching in MediaWiki?

Last update: Aug 07, 2025

To disable caching in your MediaWiki, open the LocalSettings.php file and add the following lines to it:

$wgEnableParserCache = false;

$wgCachePages = false;

Share this article