method
clear
v3.1.0 -
Show latest stable
- Class:
ActiveSupport::Cache::FileStore
clear(options = nil)public
No documentation available.
# File activesupport/lib/active_support/cache/file_store.rb, line 23
def clear(options = nil)
root_dirs = Dir.entries(cache_path).reject{|f| f.in?(['.', '..'])}
FileUtils.rm_r(root_dirs.collect{|f| File.join(cache_path, f)})
end