lib/supernova/solr_indexer.rb in supernova-0.4.16 vs lib/supernova/solr_indexer.rb in supernova-0.4.17
- old
+ new
@@ -69,9 +69,18 @@
self.max_rows_to_direct_index ||= MAX_ROWS_TO_DIRECT_INDEX
self.options = options
self.ids ||= :all
end
+ def ids=(new_ids)
+ @ids = new_ids
+ @cached = {}
+ end
+
+ def cached
+ @cached ||= {}
+ end
+
def debug(message)
response = true
time = Benchmark.realtime do
response = yield if block_given?
end
\ No newline at end of file