mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 08:19:05 +00:00
Extract counters from accounts table to account_stats table (#9295)
This commit is contained in:
@@ -22,7 +22,7 @@ class InstancePresenter
|
||||
end
|
||||
|
||||
def status_count
|
||||
Rails.cache.fetch('local_status_count') { Account.local.sum(:statuses_count) }
|
||||
Rails.cache.fetch('local_status_count') { Account.local.joins(:account_stat).sum('account_stats.statuses_count') }
|
||||
end
|
||||
|
||||
def domain_count
|
||||
|
||||
Reference in New Issue
Block a user