dblock/mongoid-cached-json — pull request #13 by macreery (2013-05-06 22:28:39+00:00)
Title: Properly glob keys as separate arguments to read_multi

Previously, read_multi was passing all keys as a single array, which works with `DalliStore`, but only due to a discrepancy in the behavior of `DalliStore` compared to the default (`ActiveSupport::Cache::Store`). This discrepancy has been addressed by mperham/dalli#362.

The upshot of this bug is that `Mongoid::CachedJson` would never actually utilize the cache with a cache other than `DalliStore`, and a call trace that hit `read_multi`. In particular, this degrades performance in most `:test` and `:development` environments, and introduces a discrepancy between `:test` and `:production`.