Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit b6c13f2d70eaa02f264281f34b518b4e9a6d41c6 1 parent 359caef
@jamis jamis authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/lib/action_controller/caching.rb
View
4 actionpack/lib/action_controller/caching.rb
@@ -375,7 +375,9 @@ def read(name, options = {}) #: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:
Please sign in to comment.
Something went wrong with that request. Please try again.