diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-22 20:08:29 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-22 20:08:29 +0000 |
commit | 0223565a4d4a62447e59d69a4da7cfa184531134 (patch) | |
tree | 9fb6bb25dc06560811e04d40b3a7e0b4ad0c3453 /actionpack | |
parent | 34f9d30e399050e776263441ee1d4415d0b2c254 (diff) | |
download | rails-0223565a4d4a62447e59d69a4da7cfa184531134.tar.gz rails-0223565a4d4a62447e59d69a4da7cfa184531134.tar.bz2 rails-0223565a4d4a62447e59d69a4da7cfa184531134.zip |
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
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |