mirror of
https://github.com/neocities/neocities.git
synced 2025-07-24 03:20:40 +02:00
activity feed: restrict csrf_token usage unless logged in to prevent cookie setting, remove the unused rack-cache
This commit is contained in:
parent
9479ca05d0
commit
e21e20b32e
9 changed files with 34 additions and 45 deletions
|
@ -75,7 +75,6 @@ end
|
|||
|
||||
get '/admin/stats' do
|
||||
require_admin
|
||||
# expires 14400, :public, :must_revalidate if self.class.production? # 4 hours
|
||||
|
||||
@stats = {
|
||||
total_hosted_site_hits: DB['SELECT SUM(hits) FROM sites'].first[:sum],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue