aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-07 16:43:48 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-07 16:43:48 +0000
commit144ba1c26bfb47899faeff135af26db6f926373c (patch)
tree2d8af988783ce9989191010364cb5efb46a268cd /engine
parent044b3ff17c8e7beb8afc0f846ac4a448baa208ec (diff)
downloadelgg-144ba1c26bfb47899faeff135af26db6f926373c.tar.gz
elgg-144ba1c26bfb47899faeff135af26db6f926373c.tar.bz2
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
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/database.php6
1 files changed, 3 insertions, 3 deletions
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