disable cache on stats until I can figure out the top bar problem

This commit is contained in:
Kyle Drake 2015-02-24 13:51:19 -08:00
parent 029eb57b85
commit 474f5be8e7

View file

@ -1,5 +1,5 @@
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 = {
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
erb :'stats'
end
end