This is normal. Such caching is not disabled during development. In the previous application, where this was the problem, we used memory storage and then added middleware that ran Rails.cache.clear after each request.
Something like
config.middleware.use ClearCache
in development.rb
and then your ClearCache middleware should look something like this:
class ClearCache def initialize(app) @app = app end def call(env) @app.call(env) ensure Rails.cache.clear end end
Rails 3.2 also has ActiveSupport::Cache::NullStore
Frederick cheung
source share