Commit Graph

4 Commits (dfd628ed909253b61c13c0e6cdceebc28aad84dd)

Author SHA1 Message Date
Daniel Supernault f4a365e2b2
Update InstanceUpdateTotalLocalPosts.php
- Improve total post count by adding `uri` IS NULL check
3 months ago
Daniel Supernault 5a5821fe86
Update Instance total post, add optional estimation for huge status tables 3 months ago
Anil Kulkarni 8db8258cab
Fix server post stats
This fixes the homepage, showing how many posts have been made by the
server.
The prior logic includes posts from remote servers by an indirect check
for if it's a local post.
This commit changes the query behavior to directly check for the local
flag in the statuses column, and additionally excludes shares
3 months ago
Daniel Supernault 4f2b8ed20a
Refactor total local post count logic, cache value and schedule updates twice daily to eliminate the perf issue on larger instances 1 year ago