]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/openid.rb
Remove unused code for handling search results in Potlatch
[rails.git] / config / initializers / openid.rb
index 966164b3e9e640b2a8165d05c1ffa3d5a67cb8ed..2a6de16b22f2416a2082c21c5d42f3568449ab79 100644 (file)
@@ -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