Permalink
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...
1 parent 844da12 commit cc53229378665869fa94170079e0acd3e91d432a Neeraj Singh committed with josevalim Jun 13, 2010
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

0 comments on commit cc53229

Please sign in to comment.