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:
parent
359caef33c
commit
b6c13f2d70
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue