Manual:$wgDisableQueryPageUpdate

Details
Set this to an array of special page names to prevent maintenance/updateSpecialPages.php from updating those pages.