newindex mockup

This commit is contained in:
Kyle Drake 2014-04-23 18:37:39 -07:00
parent 7ed2839cf2
commit 1961522dd2
2 changed files with 341 additions and 0 deletions

10
app.rb
View file

@ -42,6 +42,16 @@ error do
erb :'error'
end
get '/newindex_mockup' 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 :newindex_mockup, layout: false
end
get '/home_mockup' do
erb :'home_mockup'
end