From 4cfe0887d68f3d89d63e2d7a857fc12186e6fae1 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 8 Apr 2009 17:16:36 +0000 Subject: Close #968: View path cache can now be turned on and off git-svn-id: https://code.elgg.org/elgg/trunk@3197 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 fb33d7461..e5c87acb6 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -182,6 +182,12 @@ $CONFIG->simplecache_enabled = $simplecache_enabled; } else { $CONFIG->simplecache_enabled = 1; + } + $viewpath_cache_enabled = datalist_get('viewpath_cache_enabled'); + if ($viewpath_cache_enabled !== false) { + $CONFIG->viewpath_cache_enabled = $viewpath_cache_enabled; + } else { + $CONFIG->viewpath_cache_enabled = 1; } if (isset($CONFIG->site) && ($CONFIG->site instanceof ElggSite)) { $CONFIG->wwwroot = $CONFIG->site->url; -- cgit v1.2.3