Manual:DoMaintenance.php/en

Details
doMaintenance.php file is a maintenance script to verify the most important files and run some jobs automatically.

Usage
When writing a maintenance script, add  to the end of file.

Here  loads   file which autoloads MediaWiki classes and configuration to run the script smoothly.