From: Aaron Schulz Date: Wed, 12 Feb 2014 06:13:17 +0000 (-0800) Subject: Fixed broken auth caching for Swift X-Git-Tag: 1.31.0-rc.0~16943 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27user%27%2C%20userid=session.user.id%29%20%7D%7D?a=commitdiff_plain;h=288941aa53adffb7de1af8ff4fbae4c1f0c26937;p=lhc%2Fweb%2Fwiklou.git Fixed broken auth caching for Swift * A set() call was missing since 2af7ad8 Change-Id: I62b277e886c7ce6142a4d20f705b8337c3e4be58 --- diff --git a/includes/filebackend/SwiftFileBackend.php b/includes/filebackend/SwiftFileBackend.php index dc22538334..d4ac64ddf6 100644 --- a/includes/filebackend/SwiftFileBackend.php +++ b/includes/filebackend/SwiftFileBackend.php @@ -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 );