Manual:$wgTmpDirectory

Details
The path to the temporary directory. When using CACHE_DBA as your $wgMainCacheType, this allows you to select which directory is used.