aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/cache.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 2832a35b9..32f36ff03 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -243,9 +243,7 @@ function elgg_regenerate_simplecache($viewtype = NULL) {
* @since 1.8.0
*/
function elgg_is_simplecache_enabled() {
- global $CONFIG;
-
- if ($CONFIG->simplecache_enabled) {
+ if (elgg_get_config('simplecache_enabled')) {
return true;
}