mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 09:11:28 +02:00
cached global activity feed, publicly acessible #69
This commit is contained in:
parent
41a7cb763d
commit
60f9b5b589
7 changed files with 67 additions and 51 deletions
6
app/activity.rb
Normal file
6
app/activity.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue