From 6fd9ceb051538f11829b7d9b2919665dbeca70ed Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 9 Apr 2020 08:34:40 +0200 Subject: 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. --- lib/Multi/API.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/Multi/API.pm') 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'; }; -- cgit v1.2.3