Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fragment cache not generating the proper cache key in log

[#4827 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit cc53229378665869fa94170079e0acd3e91d432a 1 parent 844da12
@neerajdotname neerajdotname authored josevalim committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/caching/fragments.rb
View
2  actionpack/lib/action_controller/caching/fragments.rb
@@ -65,8 +65,8 @@ def write_fragment(key, content, options = nil)
def read_fragment(key, options = nil)
return unless cache_configured?
+ key = fragment_cache_key(key)
self.class.benchmark "Cached fragment hit: #{key}" do
- key = fragment_cache_key(key)
result = cache_store.read(key, options)
result.respond_to?(:html_safe) ? result.html_safe : result
end
Please sign in to comment.
Something went wrong with that request. Please try again.