aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorkevinjardine <kevinjardine@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-23 21:29:14 +0000
committerkevinjardine <kevinjardine@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-23 21:29:14 +0000
commit0139841a1c0836f738fe0917ad09d84e356b68ea (patch)
treeaa9d7bb53e90b9e5a80cfaa4d96f83a556268557 /engine/lib
parent592d51e94bd7071e9b75c069ff91da311ec001ff (diff)
downloadelgg-0139841a1c0836f738fe0917ad09d84e356b68ea.tar.gz
elgg-0139841a1c0836f738fe0917ad09d84e356b68ea.tar.bz2
Added the ability to turn simplecache on and off.
git-svn-id: https://code.elgg.org/elgg/trunk@2908 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/configuration.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php
index 698bccc73..fb33d7461 100644
--- a/engine/lib/configuration.php
+++ b/engine/lib/configuration.php
@@ -177,6 +177,12 @@
$dataroot = datalist_get('dataroot');
if (!empty($dataroot))
$CONFIG->dataroot = $dataroot;
+ $simplecache_enabled = datalist_get('simplecache_enabled');
+ if ($simplecache_enabled !== false) {
+ $CONFIG->simplecache_enabled = $simplecache_enabled;
+ } else {
+ $CONFIG->simplecache_enabled = 1;
+ }
if (isset($CONFIG->site) && ($CONFIG->site instanceof ElggSite)) {
$CONFIG->wwwroot = $CONFIG->site->url;
$CONFIG->sitename = $CONFIG->site->name;