diff options
author | kevinjardine <kevinjardine@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-23 21:29:14 +0000 |
---|---|---|
committer | kevinjardine <kevinjardine@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-23 21:29:14 +0000 |
commit | 0139841a1c0836f738fe0917ad09d84e356b68ea (patch) | |
tree | aa9d7bb53e90b9e5a80cfaa4d96f83a556268557 /engine | |
parent | 592d51e94bd7071e9b75c069ff91da311ec001ff (diff) | |
download | elgg-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')
-rw-r--r-- | engine/lib/configuration.php | 6 |
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; |