https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114719

Revision: 114719
Author:   laner
Date:     2012-04-04 22:25:35 +0000 (Wed, 04 Apr 2012)
Log Message:
-----------
Removing these memcache calls for now. It doesn't work properly, and doing it 
correctly will be a lot of effort.

Modified Paths:
--------------
    trunk/extensions/OpenStackManager/OpenStackNovaUser.php

Modified: trunk/extensions/OpenStackManager/OpenStackNovaUser.php
===================================================================
--- trunk/extensions/OpenStackManager/OpenStackNovaUser.php     2012-04-04 
22:22:03 UTC (rev 114718)
+++ trunk/extensions/OpenStackManager/OpenStackNovaUser.php     2012-04-04 
22:25:35 UTC (rev 114719)
@@ -27,17 +27,7 @@
         */
        function fetchUserInfo() {
                global $wgAuth, $wgUser;
-               global $wgMemc;
 
-               $key = wfMemcKey( 'ldapauthentication', "userinfo", 
$this->userDN );
-               $cacheLength = 3600;
-               $memcUserInfo = $wgMemc->get( $key );
-               if ( is_array( $memcUserInfo ) ) {
-                       $this->userInfo = $memcUserInfo;
-                       $this->userDN = $this->userInfo[0]["dn"];
-                       $wgAuth->printDebug( "Fetched userdn from memcache: 
$this->userDN ", NONSENSITIVE );
-                       return;
-               }
                if ( $this->username ) {
                        $this->userDN = $wgAuth->getUserDN( strtolower( 
$this->username ) );
                        $wgAuth->printDebug( "Fetching userdn using username: 
$this->userDN ", NONSENSITIVE );
@@ -46,7 +36,6 @@
                        $wgAuth->printDebug( "Fetching userdn using wiki name: 
" . $wgUser->getName(), NONSENSITIVE );
                }
                $this->userInfo = $wgAuth->userInfo;
-               $wgMemc->set( $key, $this->userInfo, $cacheLength );
        }
 
        /**


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to