instance method
delete_matched
Ruby on Rails 2.2.3
Since v2.2.3Signature
delete_matched(matcher, options = nil)
No documentation comment.
Parameters
-
matcherreq -
optionsopt = nil
Source
# 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
Defined in activesupport/lib/active_support/cache/file_store.rb line 32
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore