Eugen Rochko
4 yıl önce
committed by
GitHub
ebeveyn
işleme
e682d3aa9e
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile
1 ekleme ve
1 silme
-
app/presenters/instance_presenter.rb
|
|
@@ -21,7 +21,7 @@ class InstancePresenter |
|
|
|
end |
|
|
|
|
|
|
|
def active_user_count(weeks = 4) |
|
|
|
Rails.cache.fetch('active_user_count') { Redis.current.pfcount(*(0...weeks).map { |i| "activity:logins:#{i.weeks.ago.utc.to_date.cweek}" }) } |
|
|
|
Rails.cache.fetch("active_user_count/#{weeks}") { Redis.current.pfcount(*(0...weeks).map { |i| "activity:logins:#{i.weeks.ago.utc.to_date.cweek}" }) } |
|
|
|
end |
|
|
|
|
|
|
|
def status_count |
|
|
|