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