aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/database.php
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-02-04 21:09:02 -0500
committercash <cash.costello@gmail.com>2013-02-09 10:30:34 -0500
commit011485988a8fa734c2ed74fec21031b3beebbcfd (patch)
tree75edb16fa13e82c1fa54d28ae0a43cfa6089e94c /engine/lib/database.php
parent3a644351f6bd26fc35b6905a30bbb52e89916078 (diff)
downloadelgg-011485988a8fa734c2ed74fec21031b3beebbcfd.tar.gz
elgg-011485988a8fa734c2ed74fec21031b3beebbcfd.tar.bz2
Lots of new @todos :(
Diffstat (limited to 'engine/lib/database.php')
-rw-r--r--engine/lib/database.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index dcf50545d..2b348366d 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -123,6 +123,8 @@ function establish_db_link($dblinkname = "readwrite") {
// Set up cache if global not initialized and query cache not turned off
if ((!$DB_QUERY_CACHE) && (!$db_cache_off)) {
+ // @todo everywhere else this is assigned to array(), making it dangerous to call
+ // object methods on this. We should consider making this an plain array
$DB_QUERY_CACHE = new ElggStaticVariableCache('db_query_cache');
}
}