method
delete_matched
v2.3.8 -
Show latest stable
- Class:
ActiveSupport::Cache::FileStore
delete_matched(matcher, options = nil)public
No documentation available.
# File activesupport/lib/active_support/cache/file_store.rb, line 32
def delete_matched(matcher, options = nil)
super
search_dir(@cache_path) do |f|
if f =~ matcher
begin
File.delete(f)
rescue SystemCallError => e
# If there's no cache, then there's nothing to complain about
end
end
end
end