Thread:Project:Support desk/自己在公司内部搭建的media wiki，每次编辑完后点提交时大约要5秒左右的响应时间/reply (15)

LocalSettings.php

14 if ( !defined( 'MEDIAWIKI' ) ) { 15        exit; 16 } 21 $wgSitename = "Wiki"; 22 $wgMetaNamespace = "Wiki"; 29 $wgScriptPath = "/wiki"; 30 $wgScriptExtension = ".php"; 33 $wgServer = "http://192.168.0.99"; 36 $wgStylePath = "$wgScriptPath/skins"; 40 $wgLogo = "$wgStylePath/common/images/wiki.png"; 44 $wgEnableEmail = true; 45 $wgEnableUserEmail = true; # UPO 47 $wgEmergencyContact = "apache@192.168.0.99"; 48 $wgPasswordSender = "apache@192.168.0.99"; 50 $wgEnotifUserTalk = false; # UPO 51 $wgEnotifWatchlist = false; # UPO 52 $wgEmailAuthentication = true; 55 $wgDBtype = "mysql"; 56 $wgDBserver = "localhost"; 57 $wgDBname = "***"; 58 $wgDBuser = "***"; 59 $wgDBpassword = "***"; 62 $wgDBprefix = ""; 65 $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; 68 $wgDBmysql5 = false; 71 $wgMainCacheType = CACHE_NONE; 72 $wgMemCachedServers = array; 76 $wgEnableUploads = true; 77 #$wgUseImageMagick = true; 78 #$wgImageMagickConvertCommand = "/usr/bin/convert"; 81 $wgUseInstantCommons = true; 86 $wgShellLocale = "en_US.utf8"; 92 #$wgHashedUploadDirectory = false; 97 #$wgCacheDirectory = "$IP/cache"; 100 $wgLanguageCode = "zh-cn";

102 $wgSecretKey = "150b1405893c80b1fa33128c1b981051d4cf22f5dfb24faa4881d7d83706   4294";

106 $wgUpgradeKey = "14c26d3bd67134aa";

110 $wgDefaultSkin = "vector";

115 $wgRightsPage = ""; # Set to the title of a wiki page that describes your li   cense/copyright

116 $wgRightsUrl = "";

117 $wgRightsText = "";

118 $wgRightsIcon = "";

121 $wgDiff3 = "/usr/bin/diff3";

124 $wgGroupPermissions['*']['edit'] = false;

129 require_once "$IP/extensions/Cite/Cite.php";

130 require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";

131 require_once "$IP/extensions/Gadgets/Gadgets.php";

132 require_once "$IP/extensions/ImageMap/ImageMap.php";

133 require_once "$IP/extensions/InputBox/InputBox.php";

134 require_once "$IP/extensions/Interwiki/Interwiki.php";

135 require_once "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php";

136 #$wgLocalisationUpdateDirectory = “$IP/cache”;

137 require_once "$IP/extensions/Nuke/Nuke.php";

138 require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";

139 require_once "$IP/extensions/PdfHandler/PdfHandler.php";

140 require_once "$IP/extensions/Poem/Poem.php";

141 require_once "$IP/extensions/Renameuser/Renameuser.php";

142 require_once "$IP/extensions/SpamBlacklist/SpamBlacklist.php";

143 require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php   ";

144 require_once "$IP/extensions/TitleBlacklist/TitleBlacklist.php";

145 require_once "$IP/extensions/WikiEditor/WikiEditor.php";

146 require_once "$IP/extensions/Parsoid/Parsoid.php"; //此行为Parsoid支持而新增

147 require_once "$IP/extensions/Lockdown/Lockdown.php";

148 #require_once "$IP/extensions/VisualEditor/VisualEditor.php";

150 $wgLocaltimezone="Asia/Shanghai";

151 putenv("TZ=$wgLocaltimezone");

152 $wgLocalTZoffset=date("Z")/60;

154 # End of automatically generated settings.

155 # Add more configuration options below.

156 #$wgEnableProfileInfo = true;       //When I did not test it commented out

157 #$wgProfileToDatabase = true;	//When I did not test it commented out

158 //new

159 #// Path to your log file. Adjust this line!

160 #$wgDebugLogFile = '/var/www/html/wiki/Logfile.log';

161

162 #// Only record profiling info for pages that took longer than this

163 #$wgProfileLimit = 0.0;

164 #// Don't put non-profiling info into log file

165 #$wgProfileOnly = false;

166 #// Log sums from profiling into "profiling" table in db

167 #$wgProfileToDatabase = false;

168 #// If true, print a raw call tree instead of per-function report

169 #$wgProfileCallTree = false;

170 #// Should application server host be put into profiling table

171 #$wgProfilePerHost = false;

172

173 #// Settings for UDP profiler

174 #$wgUDPProfilerHost = '127.0.0.1';

175 #$wgUDPProfilerPort = '3811';

176

177 // Detects non-matching wfProfileIn/wfProfileOut calls

178 #$wgDebugProfiling = false;

179 // Output debug message on every wfProfileIn/wfProfileOut

180 #$wgDebugFunctionEntry = 0;

181 // Lots of debugging output from SquidUpdate.php

182 #$wgDebugSquid = false;

StartProfiler.php

1 <?php 2 3 /**  4  * To use a profiler, copy this file to StartProfiler.php, 5 * and add something like this: 6 *  7  *   $wgProfiler['class'] = 'ProfilerSimpleTest'; 8 *  9  *   $wgProfiler['class'] = 'ProfilerSimpleDB'; 10 * Or for a sampling profiler: 11 *   if ( !mt_rand( 0, 100 ) ) { 12 *       $wgProfiler['class'] = 'ProfilerSimpleTest'; 13 *   } else { 14 *       $wgProfiler['class'] = 'ProfilerStub'; 15 *   } 16  * 17  * Configuration of the profiler output can be done in LocalSettings.php 18 */