Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.status.php |
— | — | @@ -47,13 +47,13 @@ |
48 | 48 | * @return String |
49 | 49 | */ |
50 | 50 | public static function getStatus( $user, $delayed_check = false ) { |
51 | | - global $wgOnlineStatusBarDefaultOffline, $wgMemc, $wgOnlineStatusBarDefaultOnline; |
| 51 | + global $wgOnlineStatusBarDefaultOffline, $wgOnlineStatusBarDefaultOnline; |
52 | 52 | |
53 | 53 | // instead of delete every time just select the records which are not that old |
54 | 54 | if ( !$delayed_check ) { |
55 | 55 | $t_time = OnlineStatusBar::getTimeoutDate(); |
56 | 56 | // first try to use cache |
57 | | - $result = self::getCache( $user->getName(), "delayed" ); |
| 57 | + $result = self::getCache( $user->getName(), "n" ); |
58 | 58 | |
59 | 59 | if ( $result == '' ) { |
60 | 60 | $dbr = wfGetDB( DB_SLAVE ); |
— | — | @@ -61,11 +61,11 @@ |
62 | 62 | "timestamp > " . $dbr->addQuotes( $dbr->timestamp( $t_time ) ) ), |
63 | 63 | __METHOD__, array( 'LIMIT 1', 'ORDER BY timestamp DESC' ) ); |
64 | 64 | // cache it |
65 | | - self::setCache( $user->getName(), $result, "delayed" ); |
| 65 | + self::setCache( $user->getName(), $result, "n" ); |
66 | 66 | } |
67 | 67 | } |
68 | 68 | else { |
69 | | - $result = self::getCache( $user->getName(), "normal" ); |
| 69 | + $result = self::getCache( $user->getName(), "d" ); |
70 | 70 | |
71 | 71 | if ( $result == '' ) { |
72 | 72 | $dbr = wfGetDB( DB_SLAVE ); |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | __METHOD__, array( 'LIMIT 1', 'ORDER BY timestamp DESC' ) ); |
75 | 75 | $w_time = OnlineStatusBar::getTimeoutDate( true ); |
76 | 76 | // cache it |
77 | | - self::setCache( $user->getName(), $result, "normal" ); |
| 77 | + self::setCache( $user->getName(), $result, "d" ); |
78 | 78 | } |
79 | 79 | } |
80 | 80 | |