summaryrefslogtreecommitdiff
path: root/lib/Multi/API.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-04-09 08:34:40 +0200
committerYorhel <git@yorhel.nl>2020-04-09 08:35:32 +0200
commit6fd9ceb051538f11829b7d9b2919665dbeca70ed (patch)
tree5944f52bd30a92aa56bb165e5db4674d527660cf /lib/Multi/API.pm
parent443fc2d8bc509b2231b4b34cb420b84d158a1b02 (diff)
Stop keeping track of users/threads/posts count cache
Those stats havent been displayed on the site for ages, anyway. The API will now report '0' for these stats.
Diffstat (limited to 'lib/Multi/API.pm')
-rw-r--r--lib/Multi/API.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Multi/API.pm b/lib/Multi/API.pm
index 22152aa0..518d32bc 100644
--- a/lib/Multi/API.pm
+++ b/lib/Multi/API.pm
@@ -337,8 +337,7 @@ sub dbstats {
cpg $c, 'SELECT section, count FROM stats_cache', undef, sub {
my $res = shift;
- cres $c, [ dbstats => { map {
- $_->{section} =~ s/^threads_//;
+ cres $c, [ dbstats => { users => 0, threads => 0, posts => 0, map {
($_->{section}, 1*$_->{count})
} $res->rowsAsHashes } ], 'dbstats';
};