activesupport/lib/active_support/cache/file_store.rb
# Preemptively iterates through all stored keys and removes the ones which have expired.
Preemptively iterates through all stored keys and removes the ones which have expired.
Preemptively iterates through all stored keys and removes the ones which have expired .
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
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
Preemptively iterates through all stored keys and removes the ones which have expired.
Preemptively iterates through all stored keys and removes the ones which have expired .
options
<not_specific>