X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a108e9290c5bb8ba2a3f60b5fa8f7b3bc3017a9f..3ebad9ec2f59f2ba5716952f6169cdbb4972f931:/config/initializers/openid.rb 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