aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/caching.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb
index 55a4b77fda..53ec03a7a4 100644
--- a/actionpack/lib/action_controller/caching.rb
+++ b/actionpack/lib/action_controller/caching.rb
@@ -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: