clivecrous/wurfl-lite-middleware — pull request #2 by andremedeiros (2012-07-04 10:03:29+00:00)
Title: Share browser info between processes

At the moment, when a Passenger process restarts or there's a new release, the browser info has to be re-parsed and the cache warmed up again, by process.

This patch makes the middleware use the `Rails.cache` mechanism so that, when using a cache store like Redis or Memcache, it is shared between processes or even machines for a server farm.

Now, the requests only reach `wurfl-lite` if they're not already in the cache.