Skip to content

Commit

Permalink
Fragment cache not generating the proper cache key in log
Browse files Browse the repository at this point in the history
[#4827 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
Neeraj Singh authored and josevalim committed Jun 23, 2010
1 parent 844da12 commit cc53229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/caching/fragments.rb
Expand Up @@ -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
Expand Down

0 comments on commit cc53229

Please sign in to comment.