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