From 144ba1c26bfb47899faeff135af26db6f926373c Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 7 Nov 2008 16:43:48 +0000 Subject: Profiling now showing queries executed before debug flag being set git-svn-id: https://code.elgg.org/elgg/trunk@2426 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib/database.php') diff --git a/engine/lib/database.php b/engine/lib/database.php index 3fee75917..97220dca7 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -24,7 +24,7 @@ function establish_db_link($dblinkname = "readwrite") { // Get configuration, and globalise database link - global $CONFIG, $dblink, $DB_QUERY_CACHE; + global $CONFIG, $dblink, $DB_QUERY_CACHE, $dbcalls; if (!isset($dblink)) { $dblink = array(); @@ -184,8 +184,8 @@ $dbcalls++; - if ((isset($CONFIG->debug)) && ($CONFIG->debug==true)) - $DB_PROFILE[] = $query; + //if ((isset($CONFIG->debug)) && ($CONFIG->debug==true)) + $DB_PROFILE[] = $query; $result = mysql_query($query, $dblink); $DB_QUERY_CACHE[$query] = -1; // Set initial cache to -1 -- cgit v1.2.3