lib/picky/index/category.rb in picky-0.9.3 vs lib/picky/index/category.rb in picky-0.9.4
- old
+ new
@@ -27,15 +27,18 @@
end
# Loads the index from cache.
#
def load_from_cache
+ timed_exclaim "Loading index #{identifier}."
exact.load
partial.load
end
+ # TODO Move to initializer?
+ #
def identifier
- "#{type.name} #{name}"
+ @identifier ||= "#{type.name} #{name}"
end
# Generates all caches for this category.
#
def generate_caches
\ No newline at end of file