Allow wgMainCacheType setting to be overridden

Move it before require_once( 'orig/LocalSettings.php' )

Bug: 72600
Change-Id: I92394951de9b69569eade6d244b1725b0527e12f
Merge "Allow wgMainCacheType setting to be overridden" into production