Index: trunk/extensions/OpenStackManager/OpenStackNovaUser.php |
— | — | @@ -27,17 +27,7 @@ |
28 | 28 | */ |
29 | 29 | function fetchUserInfo() { |
30 | 30 | global $wgAuth, $wgUser; |
31 | | - global $wgMemc; |
32 | 31 | |
33 | | - $key = wfMemcKey( 'ldapauthentication', "userinfo", $this->userDN ); |
34 | | - $cacheLength = 3600; |
35 | | - $memcUserInfo = $wgMemc->get( $key ); |
36 | | - if ( is_array( $memcUserInfo ) ) { |
37 | | - $this->userInfo = $memcUserInfo; |
38 | | - $this->userDN = $this->userInfo[0]["dn"]; |
39 | | - $wgAuth->printDebug( "Fetched userdn from memcache: $this->userDN ", NONSENSITIVE ); |
40 | | - return; |
41 | | - } |
42 | 32 | if ( $this->username ) { |
43 | 33 | $this->userDN = $wgAuth->getUserDN( strtolower( $this->username ) ); |
44 | 34 | $wgAuth->printDebug( "Fetching userdn using username: $this->userDN ", NONSENSITIVE ); |
— | — | @@ -46,7 +36,6 @@ |
47 | 37 | $wgAuth->printDebug( "Fetching userdn using wiki name: " . $wgUser->getName(), NONSENSITIVE ); |
48 | 38 | } |
49 | 39 | $this->userInfo = $wgAuth->userInfo; |
50 | | - $wgMemc->set( $key, $this->userInfo, $cacheLength ); |
51 | 40 | } |
52 | 41 | |
53 | 42 | /** |