lib/monocle.rb in monocle-0.2.1 vs lib/monocle.rb in monocle-0.2.2
- old
+ new
@@ -83,9 +83,11 @@
if should_cache_view_count?
self._monocle_view_types.keys.each_with_index do |view_type, i|
cache_view_count(view_type, results[i])
end
+ self.update_column(self._monocle_options[:cache_threshold_check_field].to_sym, Time.now) if respond_to?(:update_column)
+ self.set(self._monocle_options[:cache_threshold_check_field].to_sym, Time.now) if respond_to?(:set)
end
end
def cache_field_for_view(view_type)
:"#{view_type}_views"