From: Aaron Schulz Date: Wed, 12 Feb 2014 06:38:06 +0000 (-0800) Subject: Reduce the amount of Swift auth cache keys used on wiki farms X-Git-Tag: 1.31.0-rc.0~16942 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=3d670f17195c090f7fb18c3558d5ec99791be8e5;p=lhc%2Fweb%2Fwiklou.git Reduce the amount of Swift auth cache keys used on wiki farms Change-Id: Ic0a2f744d5d94bfb22286a19be3de0c37ecdf519 --- diff --git a/includes/filebackend/SwiftFileBackend.php b/includes/filebackend/SwiftFileBackend.php index d4ac64ddf6..caf15aa644 100644 --- a/includes/filebackend/SwiftFileBackend.php +++ b/includes/filebackend/SwiftFileBackend.php @@ -1586,7 +1586,7 @@ class SwiftFileBackend extends FileBackendStore { * @return string */ private function getCredsCacheKey( $username ) { - return wfMemcKey( 'backend', $this->getName(), 'usercreds', $username ); + return 'swiftcredentials:' . md5( $username . ':' . $this->swiftAuthUrl ); } /**