diff options
author | Cash Costello <cash.costello@gmail.com> | 2013-04-13 14:54:20 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2013-04-13 14:54:20 -0700 |
commit | 9f2fbbd9e64cece5e2f3f1d721a1157b739c85b7 (patch) | |
tree | 5c08d5742defdd8f3a1577453c9f824930f7e92e /engine/lib/upgrades/2010061501.php | |
parent | 9b526b7867a461841e4f990d4ea7945660dac18d (diff) | |
parent | 21c92cf39d719a913cd9e29474c04781e9cd72ef (diff) | |
download | elgg-9f2fbbd9e64cece5e2f3f1d721a1157b739c85b7.tar.gz elgg-9f2fbbd9e64cece5e2f3f1d721a1157b739c85b7.tar.bz2 |
Merge pull request #5355 from cash/oom2
Fixes the DB query cache out of memory issues
Diffstat (limited to 'engine/lib/upgrades/2010061501.php')
-rw-r--r-- | engine/lib/upgrades/2010061501.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/upgrades/2010061501.php b/engine/lib/upgrades/2010061501.php index 9ff7d3102..744c28fd5 100644 --- a/engine/lib/upgrades/2010061501.php +++ b/engine/lib/upgrades/2010061501.php @@ -45,7 +45,7 @@ if ($dbversion < 2009100701) { } } - global $DB_QUERY_CACHE, $DB_PROFILE, $ENTITY_CACHE; + global $ENTITY_CACHE; /** Upgrade file locations @@ -60,7 +60,9 @@ if ($dbversion < 2009100701) { $users = mysql_query("SELECT guid, username FROM {$CONFIG->dbprefix}users_entity WHERE username != ''", $link); while ($user = mysql_fetch_object($users)) { - $DB_QUERY_CACHE = $DB_PROFILE = $ENTITY_CACHE = array(); + $ENTITY_CACHE = array(); + _elgg_invalidate_query_cache(); + $to = $CONFIG->dataroot . user_file_matrix($user->guid); foreach (array('1_0', '1_1', '1_6') as $version) { |