What is ActiveSupport::Cache::Strategy::LocalCache used for?
问题 In my production middleware stack in all environments I see this one-off instance: use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x7f38095d> I've experimented by removing everything I can think of related to caching, but I'm unable to figure out where it comes from. What is it? 回答1: In the abstract, it wraps another cache with an in-memory cache for the duration of a block, and then is cleared after the block. In practice I believe it is used in Rails/Rack to wrap whatever