We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 205d0c6 + b7e440e commit a0fb2b2Copy full SHA for a0fb2b2
activesupport/lib/active_support/cache/file_store.rb
@@ -36,7 +36,7 @@ def self.supports_cache_versioning?
36
def clear(options = nil)
37
root_dirs = (Dir.children(cache_path) - GITKEEP_FILES)
38
FileUtils.rm_r(root_dirs.collect { |f| File.join(cache_path, f) })
39
- rescue Errno::ENOENT
+ rescue Errno::ENOENT, Errno::ENOTEMPTY
40
end
41
42
# Preemptively iterates through all stored keys and removes the ones which have expired.
0 commit comments