aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/database.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-04 17:56:44 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-11-04 17:56:44 +0000
commita601a52eca4d5f0dad5da705f2858ff35368f605 (patch)
treee8c244da4eeb5e7f241d7a60db22cb8bd38f91e0 /engine/lib/database.php
parentc21cf65787e4f5f3994104a90c7291eb6fc5f60a (diff)
downloadelgg-a601a52eca4d5f0dad5da705f2858ff35368f605.tar.gz
elgg-a601a52eca4d5f0dad5da705f2858ff35368f605.tar.bz2
More tweaks
git-svn-id: https://code.elgg.org/elgg/trunk@2400 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/database.php')
-rw-r--r--engine/lib/database.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php
index 0e5b43106..53d987665 100644
--- a/engine/lib/database.php
+++ b/engine/lib/database.php
@@ -57,7 +57,10 @@
// Set up cache
if (!$DB_QUERY_CACHE)
- $DB_QUERY_CACHE = select_default_memcache('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);
}
/**