cached global activity feed, publicly acessible #69

This commit is contained in:
Kyle Drake 2015-02-15 13:18:54 -08:00
parent 41a7cb763d
commit 60f9b5b589
7 changed files with 67 additions and 51 deletions

6
app/activity.rb Normal file
View file

@ -0,0 +1,6 @@
get '/activity' do
expires 14400, :public, :must_revalidate if self.class.production? # 4 hours
params[:activity] = 'global' # FIXME this is a bad hack
@events = Event.global_dataset.all
erb :'activity'
end