From 7f02cdd4a0cf4596e0f6fe99849486c43b87024a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 7 Dec 2007 13:34:06 +0000 Subject: Removed query cache rescue as it could cause code to be run twice (closes #10408) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 5 +++++ activerecord/lib/active_record/query_cache.rb | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'activerecord') diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 6e6cec03ae..d7bacfef67 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,3 +1,8 @@ +*2.0.1* (December 7th, 2007) + +* Removed query cache rescue as it could cause code to be run twice (closes #10408) [DHH] + + *2.0.0* (December 6th, 2007) * Anchor DateTimeTest to fixed DateTime instead of a variable value based on Time.now#advance#to_datetime, so that this test passes on 64-bit platforms running Ruby 1.8.6+ [Geoff Buesing] diff --git a/activerecord/lib/active_record/query_cache.rb b/activerecord/lib/active_record/query_cache.rb index e1d77975d3..a8af89fcb9 100644 --- a/activerecord/lib/active_record/query_cache.rb +++ b/activerecord/lib/active_record/query_cache.rb @@ -7,8 +7,6 @@ module ActiveRecord else connection.cache(&block) end - rescue - yield # if the database is not present, don't let the cache spoil the party end # Disable the query cache within the block if Active Record is configured. -- cgit v1.2.3