diff --git a/app/controllers/statistics_controller.rb b/app/controllers/statistics_controller.rb index 00a2ac8..c4377ef 100644 --- a/app/controllers/statistics_controller.rb +++ b/app/controllers/statistics_controller.rb @@ -110,7 +110,7 @@ def cache_key_for_status latest_update = [ Refugee.maximum(:updated_at), Home.maximum(:updated_at), - Placement.maximum(:updated_at)].sort.last.try(:utc).try(:to_s, :number) + Placement.maximum(:updated_at)].reject(&:blank?).sort.last.try(:utc).try(:to_s, :number) "status/index-#{Date.today.to_s}-#{count}-#{latest_update}" end end