aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index bffc2fc86..581998306 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -62,7 +62,7 @@ function establish_db_link($dblinkname = "readwrite") {
mysql_query("SET NAMES utf8");
// Set up cache
- if ((!$DB_QUERY_CACHE) && (!$CONFIG->db_disable_query_cache)) {
+ if ((!$DB_QUERY_CACHE) && isset($CONFIG->db_disable_query_cache) && (!$CONFIG->db_disable_query_cache)) {
$DB_QUERY_CACHE = new ElggStaticVariableCache('db_query_cache'); //array();
//$DB_QUERY_CACHE = select_default_memcache('db_query_cache'); //array();
}