def clear
      invalid_keys = all_keys.select { |key| key.include?(@scope.table_name.downcase) }
      invalid_keys.each { |key| Rails.cache.delete(key) }

      Rails.cache.write(list_key, all_keys - invalid_keys)
    end
def clear
      invalid_keys = all_keys.select { |key| key.include?(@scope.table_name.downcase) }
      invalid_keys.each { |key| Rails.cache.delete(key) }

      Rails.cache.write(list_key, all_keys - invalid_keys)
    end
def clear invalid_keys = all_keys . select { | key | key . include? ( @scope . table_name . downcase ) } invalid_keys . each { | key | Rails . cache . delete ( key ) } Rails . cache . write ( list_key , all_keys - invalid_keys ) end
Clear out any count caches which have SQL that includes the scopes table
Clear out any count caches which have SQL that includes the scopes table