aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-05 14:50:27 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-05 14:50:27 +0000
commit35f824f7a0c9049e743864b267ef78d8a4d3c0f2 (patch)
tree0acb7018dd0c6cbd82ce6049c7566ab5d139bf12
parentcc101aade38f2967659dc264c49bd19128037f3c (diff)
downloadelgg-35f824f7a0c9049e743864b267ef78d8a4d3c0f2.tar.gz
elgg-35f824f7a0c9049e743864b267ef78d8a4d3c0f2.tar.bz2
Revert use of memcache for database query cache
git-svn-id: https://code.elgg.org/elgg/trunk@2403 36083f99-b078-4883-b0ff-0f9b5a30f544
-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);
}
/**