Don't die when an attempt to delete a cache fails

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2005-05-30 07:05:52 +00:00
parent 359caef33c
commit b6c13f2d70
1 changed files with 3 additions and 1 deletions

View File

@ -375,7 +375,9 @@ module ActionController #:nodoc:
end
def delete(name, options) #:nodoc:
File.delete(real_file_path(name)) if File.exist?(real_file_path(name))
File.delete(real_file_path(name))
rescue SystemCallError => e
Base.logger.info "Couldn't expire cache #{name} (#{e.message})" unless Base.logger.nil?
end
def delete_matched(matcher, options) #:nodoc: