tweak numbers

This commit is contained in:
Kyle Drake 2015-02-15 13:21:34 -08:00
parent 60f9b5b589
commit 12b7a2830e
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
get '/activity' do 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 params[:activity] = 'global' # FIXME this is a bad hack
@events = Event.global_dataset.all @events = Event.global_dataset.all
erb :'activity' erb :'activity'

View file

@ -12,7 +12,7 @@ class Event < Sequel::Model
many_to_one :site many_to_one :site
many_to_one :actioning_site, key: :actioning_site_id, class: :Site many_to_one :actioning_site, key: :actioning_site_id, class: :Site
DEFAULT_GLOBAL_LIMIT = 100 DEFAULT_GLOBAL_LIMIT = 200
GLOBAL_VIEWS_MINIMUM = 500 GLOBAL_VIEWS_MINIMUM = 500
def self.global_dataset(current_page=1, limit=DEFAULT_GLOBAL_LIMIT) def self.global_dataset(current_page=1, limit=DEFAULT_GLOBAL_LIMIT)