mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
disable recalculating the binary tree - this function might have a severe problem. :D And additionally it should not be needed anymore.
git-svn-id: file:///svn/phpbb/trunk@6111 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
0346b9da37
commit
d8137406e2
1 changed files with 7 additions and 1 deletions
|
@ -2479,7 +2479,10 @@ function tidy_database()
|
||||||
{
|
{
|
||||||
global $db;
|
global $db;
|
||||||
|
|
||||||
// Recalculate binary tree for forums
|
// Disabling recalculating the binary tree for the moment
|
||||||
|
// It might be the source of some severe problems with broken trees
|
||||||
|
|
||||||
|
/* Recalculate binary tree for forums
|
||||||
recalc_btree('forum_id', FORUMS_TABLE);
|
recalc_btree('forum_id', FORUMS_TABLE);
|
||||||
|
|
||||||
// Recalculate binary tree for modules
|
// Recalculate binary tree for modules
|
||||||
|
@ -2494,6 +2497,9 @@ function tidy_database()
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
|
// remove cache files.
|
||||||
|
*/
|
||||||
|
|
||||||
set_config('database_last_gc', time(), true);
|
set_config('database_last_gc', time(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue