diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-08-08 12:46:44 -0300 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-08-08 12:46:44 -0300 |
commit | efcfce50c417975ee038a107755a1542a690d39b (patch) | |
tree | 4c4625a5a668f6a2b462081ea73dbe55e9fb4254 /actionpack/lib/action_controller/caching | |
parent | 0fbeaa98e4e60ca0949be298dae8545807407e1d (diff) | |
download | rails-efcfce50c417975ee038a107755a1542a690d39b.tar.gz rails-efcfce50c417975ee038a107755a1542a690d39b.tar.bz2 rails-efcfce50c417975ee038a107755a1542a690d39b.zip |
Fixes "Cached fragment hit" written to log even if fragment is not cached (Erik Andrejko) [#2917 state:resolved]
Diffstat (limited to 'actionpack/lib/action_controller/caching')
-rw-r--r-- | actionpack/lib/action_controller/caching/fragments.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/caching/fragments.rb b/actionpack/lib/action_controller/caching/fragments.rb index 95cba0e411..4ef600bea0 100644 --- a/actionpack/lib/action_controller/caching/fragments.rb +++ b/actionpack/lib/action_controller/caching/fragments.rb @@ -36,8 +36,8 @@ module ActionController #:nodoc: def fragment_for(buffer, name = {}, options = nil, &block) #:nodoc: if perform_caching - if cache = read_fragment(name, options) - buffer.concat(cache) + if fragment_exist?(name,options) + buffer.concat(read_fragment(name, options)) else pos = buffer.length block.call |