mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
disable cache on stats until I can figure out the top bar problem
This commit is contained in:
parent
029eb57b85
commit
474f5be8e7
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
get '/stats/?' do
|
get '/stats/?' do
|
||||||
expires 14400, :public, :must_revalidate if self.class.production? # 4 hours
|
# expires 14400, :public, :must_revalidate if self.class.production? # 4 hours
|
||||||
|
|
||||||
@stats = {
|
@stats = {
|
||||||
total_sites: Site.count,
|
total_sites: Site.count,
|
||||||
|
@ -84,4 +84,4 @@ get '/stats/?' do
|
||||||
@stats[:percent_until_developer_salary] = (@stats[:monthly_revenue].to_f / ((@stats[:average_developer_salary]/12) + @stats[:expenses])) * 100
|
@stats[:percent_until_developer_salary] = (@stats[:monthly_revenue].to_f / ((@stats[:average_developer_salary]/12) + @stats[:expenses])) * 100
|
||||||
|
|
||||||
erb :'stats'
|
erb :'stats'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue