From 013e5ca5bca36bc7d3d1e59d72acb0d3b76bfce4 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Sun, 13 Jun 2010 12:23:49 -0400 Subject: [PATCH] Fragment cache not generating the proper cache key in log [#4827 state:resolved] --- .../lib/action_controller/caching/fragments.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/actionpack/lib/action_controller/caching/fragments.rb b/actionpack/lib/action_controller/caching/fragments.rb index eefb649..56ccc4a 100644 --- a/actionpack/lib/action_controller/caching/fragments.rb +++ b/actionpack/lib/action_controller/caching/fragments.rb @@ -65,8 +65,8 @@ module ActionController #:nodoc: 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 -- 1.6.5.2