diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-03 18:23:16 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-03 18:23:16 +0000 |
commit | 62f75374c1792c43a515a1696e6d88cb41dc605f (patch) | |
tree | 8a0e8bf84c2504285b7b68b96b92e584f3988290 | |
parent | fe6578e6f475689c709f969b66f5634b9ddb5729 (diff) | |
download | elgg-62f75374c1792c43a515a1696e6d88cb41dc605f.tar.gz elgg-62f75374c1792c43a515a1696e6d88cb41dc605f.tar.bz2 |
Experimental database query caching, please report problems asap.
git-svn-id: https://code.elgg.org/elgg/trunk@2383 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/database.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php index 640b1aa5b..b5d461d7c 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -13,7 +13,7 @@ */ $DB_PROFILE = array(); - //$DB_QUERY_CACHE = array(); + $DB_QUERY_CACHE = array(); /**
* Connect to the database server and use the Elgg database for a particular database link
@@ -162,7 +162,7 @@ if (isset($DB_QUERY_CACHE[$query])) { if ((isset($CONFIG->debug)) && ($CONFIG->debug==true)) error_log ("$query results returned from cache"); - //return $DB_QUERY_CACHE[$query]; + return $DB_QUERY_CACHE[$query]; } $dbcalls++; @@ -213,7 +213,7 @@ if (isset($DB_QUERY_CACHE[$query])) { if ((isset($CONFIG->debug)) && ($CONFIG->debug==true)) error_log ("$query results returned from cache"); - //return $DB_QUERY_CACHE[$query]; + return $DB_QUERY_CACHE[$query]; } $dbcalls++; |