Add profiling to MagicWord.php
30000 GET!
This commit is contained in:
parent
f35b4db3f4
commit
df51a7691c
1 changed files with 2 additions and 0 deletions
|
|
@ -160,11 +160,13 @@ class MagicWord {
|
|||
* @static
|
||||
*/
|
||||
static function &get( $id ) {
|
||||
wfProfileIn( __METHOD__ );
|
||||
if (!array_key_exists( $id, self::$mObjects ) ) {
|
||||
$mw = new MagicWord();
|
||||
$mw->load( $id );
|
||||
self::$mObjects[$id] = $mw;
|
||||
}
|
||||
wfProfileOut( __METHOD__ );
|
||||
return self::$mObjects[$id];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue