mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 01:01:30 +02:00
more copy fixes
This commit is contained in:
parent
46e05ccb54
commit
3b0dd09b97
6 changed files with 50 additions and 12 deletions
6
app.rb
6
app.rb
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue