lib/picky/internals/indexing/category.rb in picky-2.5.0 vs lib/picky/internals/indexing/category.rb in picky-2.5.1
- old
+ new
@@ -101,30 +101,32 @@
def clear_caches
timed_exclaim "Deleting #{identifier}."
exact.delete
partial.delete
end
-
+
+ # Indexes, creates the "prepared_..." file.
+ #
def index!
prepare_index_directory
indexer.index
end
# Generates all caches for this category.
#
def cache!
prepare_index_directory
- configure
generate_caches
end
# We need to set what formatting method should be used.
# Uses the one defined in the indexer.
#
def configure
exact[:key_format] = self.key_format
partial[:key_format] = self.key_format
end
def generate_caches
+ configure
generate_caches_from_source
generate_partial
generate_caches_from_memory
dump_caches
timed_exclaim %Q{"#{identifier}": Caching finished.}
\ No newline at end of file