From 868c5c7aa1cccb55a3c64aa463dbcd343b5273d6 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 12 Nov 2009 02:09:50 +0000 Subject: Data migration: Disabled execution time and clearing out caches to avoid OOM errors. git-svn-id: http://code.elgg.org/elgg/trunk@3668 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/upgrades/2009102801.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/upgrades/2009102801.php b/engine/lib/upgrades/2009102801.php index 23149e5c5..fea59b411 100644 --- a/engine/lib/upgrades/2009102801.php +++ b/engine/lib/upgrades/2009102801.php @@ -1,5 +1,8 @@ guid/"; } - +global $DB_QUERY_CACHE, $DB_PROFILE, $ENTITY_CACHE; /** Upgrade file locations */ $users = mysql_query("SELECT guid, username FROM {$CONFIG->dbprefix}users_entity"); while ($user = mysql_fetch_object($users)) { + $DB_QUERY_CACHE = $DB_PROFILE = $ENTITY_CACHE = array(); + $to = $CONFIG->dataroot . user_file_matrix($user->guid); foreach (array('1_0', '1_1', '1_6') as $version) { $function = "file_matrix_$version"; -- cgit v1.2.3