Eugen Rochko
hace 4 años
committed by
GitHub
No se encontró ninguna clave conocida en la base de datos para esta firma
ID de clave GPG: 4AEE18F83AFDEB23
Se han
modificado 1 ficheros con
1 adiciones y
1 borrados
-
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 |
|
|
|