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)