From 0223565a4d4a62447e59d69a4da7cfa184531134 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 22 Jul 2005 20:08:29 +0000 Subject: Expiring a cache that doesnt exist is bliss not bad git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1895 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/caching.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_controller/caching.rb') diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index bad397c2a8..8ca01fa9b0 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -372,7 +372,7 @@ module ActionController #:nodoc: def delete(name, options) #:nodoc: File.delete(real_file_path(name)) rescue SystemCallError => e - Base.logger.error "Couldn't expire cache #{name} (#{e.message})" unless Base.logger.nil? + # If there's no cache, then there's nothing to complain about end def delete_matched(matcher, options) #:nodoc: @@ -381,7 +381,7 @@ module ActionController #:nodoc: begin File.delete(f) rescue Object => e - Base.logger.error "Couldn't expire cache: #{f} (#{e.message})" unless Base.logger.nil? + # If there's no cache, then there's nothing to complain about end end end -- cgit v1.2.3