more copy fixes

This commit is contained in:
Kyle Drake 2014-04-23 15:07:00 -07:00
parent 46e05ccb54
commit 3b0dd09b97
6 changed files with 50 additions and 12 deletions

6
app.rb
View file

@ -71,6 +71,12 @@ get '/stats_mockup' do
end
get '/?' do
if SimpleCache.expired?(:sites_count)
@sites_count = SimpleCache.store :sites_count, Site.count.roundup(100), 600 # 10 Minutes
else
@sites_count = SimpleCache.get :sites_count
end
erb :index, layout: false
end