mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
- changed the way we do forum accounting in phpBB, far less intensive and much faster. sync() recalculates the number of topics and posts using just the topics table instead of having to join topics and posts together. However, even this can be avoided if we know what operation is happening and an auto sync is not in action. Since MCP operations are "known", we can provide very fast MCP operations.
- changed the way we decide if a DB gets multi value support. Old method uses switch/case, new method assumes a DB can't unless the DB says it can via a property I hope nothing is broken :P git-svn-id: file:///svn/phpbb/trunk@7466 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1309,7 +1309,7 @@ class acp_forums
|
||||
{
|
||||
// Delete ghost topics that link back to the same forum then resync counters
|
||||
sync('topic_moved');
|
||||
sync('forum', 'forum_id', $to_id);
|
||||
sync('forum', 'forum_id', $to_id, false, true);
|
||||
}
|
||||
|
||||
return array();
|
||||
|
@@ -142,7 +142,7 @@ class acp_prune
|
||||
while ($row = $db->sql_fetchrow($result));
|
||||
|
||||
// Sync all pruned forums at once
|
||||
sync('forum', 'forum_id', $prune_ids, true);
|
||||
sync('forum', 'forum_id', $prune_ids, true, true);
|
||||
add_log('admin', 'LOG_PRUNE', $log_data);
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
@@ -584,7 +584,7 @@ class acp_users
|
||||
|
||||
if (sizeof($forum_id_ary))
|
||||
{
|
||||
sync('forum', 'forum_id', $forum_id_ary);
|
||||
sync('forum', 'forum_id', $forum_id_ary, false, true);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user