Used datastore to show statistic for more performance (#1309)

* Used datastore to show statistic for more performance

* Update admin_forums.php
This commit is contained in:
Roman Kelesidis 2024-01-06 14:07:27 +07:00 committed by GitHub
commit 6bf987edb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 46 deletions

View file

@ -472,6 +472,7 @@ if ($mode) {
fix_orphan_sf();
\TorrentPier\Legacy\Group::update_user_level('all');
$datastore->update('cat_forums');
$datastore->update('stats');
CACHE('bb_cache')->rm();
bb_die($lang['FORUMS_UPDATED'] . '<br /><br />' . sprintf($lang['CLICK_RETURN_FORUMADMIN'], '<a href="admin_forums.php">', '</a>') . '<br /><br />' . sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '<a href="index.php?pane=right">', '</a>'));