aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/database.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 53d987665..ccf188357 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -57,10 +57,11 @@
// Set up cache
if (!$DB_QUERY_CACHE)
- $DB_QUERY_CACHE = select_default_memcache('db_query_cache'); //array();
+ $DB_QUERY_CACHE = new ElggStaticVariableCache('db_query_cache'); //array();
+ //$DB_QUERY_CACHE = select_default_memcache('db_query_cache'); //array();
- if ($DB_QUERY_CACHE instanceof ElggMemcache)
- $DB_QUERY_CACHE->setDefaultExpiry(30);
+ //if ($DB_QUERY_CACHE instanceof ElggMemcache)
+ // $DB_QUERY_CACHE->setDefaultExpiry(30);
}
/**