X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/58653f8b9d90c9f0a2f44d026b0ec84574f6bc9a..5ddab68c11ad7ac85bf3b80e250aa4454292a53c:/config/initializers/openid.rb?ds=sidebyside diff --git a/config/initializers/openid.rb b/config/initializers/openid.rb index 966164b3e..2a6de16b2 100644 --- a/config/initializers/openid.rb +++ b/config/initializers/openid.rb @@ -1 +1,7 @@ -OpenIdAuthentication.store = :file +if defined?(MEMCACHE_SERVERS) + require "openid/store/memcache" + + OpenIdAuthentication.store = OpenID::Store::Memcache.new(Dalli::Client.new(MEMCACHE_SERVERS, :namespace => "rails")) +else + OpenIdAuthentication.store = :file +end