Index: trunk/phase3/includes/db/LoadMonitor.php |
— | — | @@ -64,6 +64,9 @@ |
65 | 65 | $requestRate = 10; |
66 | 66 | |
67 | 67 | global $wgMemc; |
| 68 | + if ( empty( $wgMemc ) ) |
| 69 | + $wgMemc = wfGetMainCache(); |
| 70 | + |
68 | 71 | $masterName = $this->parent->getServerName( 0 ); |
69 | 72 | $memcKey = wfMemcKey( 'lag_times', $masterName ); |
70 | 73 | $times = $wgMemc->get( $memcKey ); |