Index: trunk/phase3/includes/installer/DatabaseUpdater.php |
— | — | @@ -222,7 +222,7 @@ |
223 | 223 | * @param $what Array: what updates to perform |
224 | 224 | */ |
225 | 225 | public function doUpdates( $what = array( 'core', 'extensions', 'purge', 'stats' ) ) { |
226 | | - global $wgVersion; |
| 226 | + global $wgLocalisationCacheConf, $wgVersion; |
227 | 227 | |
228 | 228 | $what = array_flip( $what ); |
229 | 229 | if ( isset( $what['core'] ) ) { |
— | — | @@ -235,9 +235,12 @@ |
236 | 236 | |
237 | 237 | $this->setAppliedUpdates( $wgVersion, $this->updates ); |
238 | 238 | |
239 | | - if( isset( $what['purge'] ) ) { |
| 239 | + if ( isset( $what['purge'] ) ) { |
240 | 240 | $this->purgeCache(); |
241 | | - $this->rebuildLocalisationCache(); |
| 241 | + |
| 242 | + if ( $wgLocalisationCacheConf['manualRecache'] ) { |
| 243 | + $this->rebuildLocalisationCache(); |
| 244 | + } |
242 | 245 | } |
243 | 246 | if ( isset( $what['stats'] ) ) { |
244 | 247 | $this->checkStats(); |