mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
tweak numbers
This commit is contained in:
parent
60f9b5b589
commit
12b7a2830e
2 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue