From 12b7a2830ea59b081b9ad858408ff9f32aeabbb8 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 15 Feb 2015 13:21:34 -0800 Subject: [PATCH] tweak numbers --- app/activity.rb | 2 +- models/event.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/activity.rb b/app/activity.rb index 4270f719..a2da5318 100644 --- a/app/activity.rb +++ b/app/activity.rb @@ -1,5 +1,5 @@ get '/activity' do - expires 14400, :public, :must_revalidate if self.class.production? # 4 hours + expires 7200, :public, :must_revalidate if self.class.production? # 2 hours params[:activity] = 'global' # FIXME this is a bad hack @events = Event.global_dataset.all erb :'activity' diff --git a/models/event.rb b/models/event.rb index a86eb6bb..1cb84918 100644 --- a/models/event.rb +++ b/models/event.rb @@ -12,7 +12,7 @@ class Event < Sequel::Model many_to_one :site many_to_one :actioning_site, key: :actioning_site_id, class: :Site - DEFAULT_GLOBAL_LIMIT = 100 + DEFAULT_GLOBAL_LIMIT = 200 GLOBAL_VIEWS_MINIMUM = 500 def self.global_dataset(current_page=1, limit=DEFAULT_GLOBAL_LIMIT)