diff --git a/activesupport/lib/active_support/cache/strategy/local_cache.rb b/activesupport/lib/active_support/cache/strategy/local_cache.rb index ef1cf051ff..96b4e1dfb7 100644 --- a/activesupport/lib/active_support/cache/strategy/local_cache.rb +++ b/activesupport/lib/active_support/cache/strategy/local_cache.rb @@ -135,7 +135,7 @@ module ActiveSupport hit = false super end - options[:event][:store] = cache.class.name if hit + options[:event][:store] = cache.class.name if hit && options[:event] value else super