method
cleanup
v4.0.2 -
Show latest stable
- Class:
ActiveSupport::Cache::FileStore
cleanup(options = nil)public
No documentation available.
# File activesupport/lib/active_support/cache/file_store.rb, line 30
def cleanup(options = nil)
options = merged_options(options)
search_dir(cache_path) do |fname|
key = file_path_key(fname)
entry = read_entry(key, options)
delete_entry(key, options) if entry && entry.expired?
end
end