aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2013030600-1.8.13-update_user_location-8999eb8bf1bdd9a3.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-04-13 14:54:20 -0700
committerCash Costello <cash.costello@gmail.com>2013-04-13 14:54:20 -0700
commit9f2fbbd9e64cece5e2f3f1d721a1157b739c85b7 (patch)
tree5c08d5742defdd8f3a1577453c9f824930f7e92e /engine/lib/upgrades/2013030600-1.8.13-update_user_location-8999eb8bf1bdd9a3.php
parent9b526b7867a461841e4f990d4ea7945660dac18d (diff)
parent21c92cf39d719a913cd9e29474c04781e9cd72ef (diff)
downloadelgg-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/2013030600-1.8.13-update_user_location-8999eb8bf1bdd9a3.php')
-rw-r--r--engine/lib/upgrades/2013030600-1.8.13-update_user_location-8999eb8bf1bdd9a3.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/engine/lib/upgrades/2013030600-1.8.13-update_user_location-8999eb8bf1bdd9a3.php b/engine/lib/upgrades/2013030600-1.8.13-update_user_location-8999eb8bf1bdd9a3.php
index b38eb5100..8eccf05e2 100644
--- a/engine/lib/upgrades/2013030600-1.8.13-update_user_location-8999eb8bf1bdd9a3.php
+++ b/engine/lib/upgrades/2013030600-1.8.13-update_user_location-8999eb8bf1bdd9a3.php
@@ -7,8 +7,6 @@
* This script turns that back into a string.
*/
-global $DB_QUERY_CACHE;
-
$ia = elgg_set_ignore_access(true);
$options = array(
'type' => 'user',
@@ -17,7 +15,7 @@ $options = array(
$batch = new ElggBatch('elgg_get_entities', $options);
foreach ($batch as $entity) {
- $DB_QUERY_CACHE = array();
+ _elgg_invalidate_query_cache();
if (is_array($entity->location)) {
$entity->location = implode(', ', $entity->location);