From 0139841a1c0836f738fe0917ad09d84e356b68ea Mon Sep 17 00:00:00 2001 From: kevinjardine Date: Mon, 23 Feb 2009 21:29:14 +0000 Subject: Added the ability to turn simplecache on and off. git-svn-id: https://code.elgg.org/elgg/trunk@2908 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/configuration.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engine/lib/configuration.php') 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; -- cgit v1.2.3