]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
removed remnants of db profiling
authorcash <cash.costello@gmail.com>
Sat, 13 Apr 2013 17:15:25 +0000 (13:15 -0400)
committercash <cash.costello@gmail.com>
Sat, 13 Apr 2013 17:15:25 +0000 (13:15 -0400)
engine/lib/upgrades/2009102801.php
engine/lib/upgrades/2010061501.php
engine/lib/upgrades/2010071001.php
engine/lib/upgrades/2010071002.php
engine/lib/upgrades/2011052801.php

index cab9a68352dd20dd5a9257baaf3a85ed5e482298..b91b99d959b19796c9aa1a9226302654d297d353 100644 (file)
@@ -203,14 +203,14 @@ function user_file_matrix($guid) {
        return "$time_created/$user->guid/";
 }
 
-global $DB_QUERY_CACHE, $DB_PROFILE, $ENTITY_CACHE;
+global $DB_QUERY_CACHE, $ENTITY_CACHE, $CONFIG;
 /**
  * Upgrade file locations
  */
 $users = mysql_query("SELECT guid, username
        FROM {$CONFIG->dbprefix}users_entity WHERE username != ''");
 while ($user = mysql_fetch_object($users)) {
-       $DB_QUERY_CACHE = $DB_PROFILE = $ENTITY_CACHE = array();
+       $DB_QUERY_CACHE = $ENTITY_CACHE = array();
 
        $to = $CONFIG->dataroot . user_file_matrix($user->guid);
        foreach (array('1_0', '1_1', '1_6') as $version) {
index 9ff7d31025dea579fba944a2b3c6629ec446ccc3..b23ad08207724abc2cc4f90e3faf39f3e42d10ca 100644 (file)
@@ -45,7 +45,7 @@ if ($dbversion < 2009100701) {
                        }
                }
 
-               global $DB_QUERY_CACHE, $DB_PROFILE, $ENTITY_CACHE;
+               global $DB_QUERY_CACHE, $ENTITY_CACHE;
 
                /**
                        Upgrade file locations
@@ -60,7 +60,7 @@ 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();
+                       $DB_QUERY_CACHE = $ENTITY_CACHE = array();
 
                        $to = $CONFIG->dataroot . user_file_matrix($user->guid);
                        foreach (array('1_0', '1_1', '1_6') as $version) {
index 1b5d379d8c279cf3024a28e0008f3d4bda15f5b7..34f5a773e7f40eea4f8a1d1668722da4ada5bcfd 100644 (file)
@@ -30,11 +30,11 @@ function user_file_matrix_2010071001($guid) {
 
 $sizes = array('large', 'medium', 'small', 'tiny', 'master', 'topbar');
 
-global $DB_QUERY_CACHE, $DB_PROFILE, $ENTITY_CACHE, $CONFIG;
+global $DB_QUERY_CACHE, $ENTITY_CACHE, $CONFIG;
 $users = mysql_query("SELECT guid, username FROM {$CONFIG->dbprefix}users_entity
        WHERE username != ''");
 while ($user = mysql_fetch_object($users)) {
-       $DB_QUERY_CACHE = $DB_PROFILE = $ENTITY_CACHE = array();
+       $DB_QUERY_CACHE = $ENTITY_CACHE = array();
 
        $user_directory = user_file_matrix_2010071001($user->guid);
        if (!$user_directory) {
index 30bd6538c05e2292d326f8d9572a15e36528a617..d1c74ed48977d2f510cd1683f4e92c5012aa2d27 100644 (file)
@@ -4,12 +4,12 @@
  */
 
 // loop through all users checking collections and notifications
-global $DB_QUERY_CACHE, $DB_PROFILE, $ENTITY_CACHE, $CONFIG;
+global $DB_QUERY_CACHE, $ENTITY_CACHE, $CONFIG;
 global $NOTIFICATION_HANDLERS;
 $users = mysql_query("SELECT guid, username FROM {$CONFIG->dbprefix}users_entity
        WHERE username != ''");
 while ($user = mysql_fetch_object($users)) {
-       $DB_QUERY_CACHE = $DB_PROFILE = $ENTITY_CACHE = array();
+       $DB_QUERY_CACHE = $ENTITY_CACHE = array();
 
        $user = get_entity($user->guid);
        foreach ($NOTIFICATION_HANDLERS as $method => $foo) {
index 8084bc06c0e9ffd05175d1e261a2aae2dd1050af..d68e0118ef40f37646c09663fcbd50dba1333dda 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Make sure all users have the relationship member_of_site
  */
-global $DB_QUERY_CACHE, $DB_PROFILE, $ENTITY_CACHE, $CONFIG;
+global $DB_QUERY_CACHE, $ENTITY_CACHE;
 $db_prefix = get_config('dbprefix');
 
 $limit = 100;
@@ -17,7 +17,7 @@ $q = "SELECT e.* FROM {$db_prefix}entities e
 $users = get_data($q);
 
 while ($users) {
-       $DB_QUERY_CACHE = $DB_PROFILE = $ENTITY_CACHE = array();
+       $DB_QUERY_CACHE = $ENTITY_CACHE = array();
 
        // do manually to not trigger any events because these aren't new users.
        foreach ($users as $user) {