Fixed broken auth caching for Swift
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 12 Feb 2014 06:13:17 +0000 (22:13 -0800)
committerTim Starling <tstarling@wikimedia.org>
Wed, 12 Feb 2014 06:29:44 +0000 (06:29 +0000)
* A set() call was missing since 2af7ad8

Change-Id: I62b277e886c7ce6142a4d20f705b8337c3e4be58

includes/filebackend/SwiftFileBackend.php

index dc22538..d4ac64d 100644 (file)
@@ -1534,6 +1534,7 @@ class SwiftFileBackend extends FileBackendStore {
                                                'auth_token' => $rhdrs['x-auth-token'],
                                                'storage_url' => $rhdrs['x-storage-url']
                                        );
+                                       $this->srvCache->set( $cacheKey, $this->authCreds, ceil( $this->authTTL / 2 ) );
                                        $this->authSessionTimestamp = time();
                                } elseif ( $rcode === 401 ) {
                                        $this->onError( null, __METHOD__, array(), "Authentication failed.", $rcode );