method
clear
v3.2.8 -
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| f.in?(EXCLUDED_DIRS)}
FileUtils.rm_r(root_dirs.collect{|f| File.join(cache_path, f)})
end