Skip to content
This repository
Browse code

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
Neeraj Singh authored josevalim committed
2  actionpack/lib/action_controller/caching/fragments.rb
@@ -65,8 +65,8 @@ def write_fragment(key, content, options = nil)
65 65
       def read_fragment(key, options = nil)
66 66
         return unless cache_configured?
67 67
 
  68
+        key = fragment_cache_key(key)
68 69
         self.class.benchmark "Cached fragment hit: #{key}" do
69  
-          key = fragment_cache_key(key)
70 70
           result = cache_store.read(key, options)
71 71
           result.respond_to?(:html_safe) ? result.html_safe : result
72 72
         end

0 notes on commit cc53229

Please sign in to comment.
Something went wrong with that request. Please try again.