diff options
author | Yorhel <git@yorhel.nl> | 2020-04-09 08:34:40 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-04-09 08:35:32 +0200 |
commit | 6fd9ceb051538f11829b7d9b2919665dbeca70ed (patch) | |
tree | 5944f52bd30a92aa56bb165e5db4674d527660cf /lib/VNDB | |
parent | 443fc2d8bc509b2231b4b34cb420b84d158a1b02 (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/VNDB')
-rw-r--r-- | lib/VNDB/DB/Misc.pm | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/VNDB/DB/Misc.pm b/lib/VNDB/DB/Misc.pm index 74d2b15e..e089f3fb 100644 --- a/lib/VNDB/DB/Misc.pm +++ b/lib/VNDB/DB/Misc.pm @@ -6,20 +6,10 @@ use warnings; use Exporter 'import'; our @EXPORT = qw| - dbStats dbItemEdit dbRevisionGet dbWikidata dbImageAdd + dbItemEdit dbRevisionGet dbWikidata dbImageAdd |; -# Returns: hashref, key = section, value = number of (visible) entries -# Sections: vn, producers, releases, users, threads, posts -sub dbStats { - my $s = shift; - return { map { - $_->{section} eq 'threads_posts' ? 'posts' : $_->{section}, $_->{count} - } @{$s->dbAll('SELECT * FROM stats_cache')}}; -} - - # Inserts a new revision into the database # Arguments: type [vrpcsd], itemid, rev, %options->{ editsum uid ihid ilock + db[item]RevisionInsert } # rev = changes.rev of the revision this edit is based on, undef to create a new DB item |