diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-17 02:38:19 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-17 02:38:19 +0000 |
commit | c428d54dcc5524c641a45aa66e6a06a1df60e931 (patch) | |
tree | a21465deafce7ff302c524811bbde33096e39d76 /engine/lib/cache.php | |
parent | cb3dbb5c961010ca32067f76fe666fe3162f42ce (diff) | |
download | elgg-c428d54dcc5524c641a45aa66e6a06a1df60e931.tar.gz elgg-c428d54dcc5524c641a45aa66e6a06a1df60e931.tar.bz2 |
Fixes #3123. Datalists and config names can now be up to 255 chars long. Debug mode is disabled when caching views to avoid saving bad stuff.
git-svn-id: http://code.elgg.org/elgg/trunk@8746 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/cache.php')
-rw-r--r-- | engine/lib/cache.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php index bc279e8ea..d4888f9d9 100644 --- a/engine/lib/cache.php +++ b/engine/lib/cache.php @@ -213,6 +213,10 @@ function elgg_regenerate_simplecache($viewtype = NULL) { $original_viewtype = elgg_get_viewtype(); + // disable error reporting so we don't cache problems + $old_debug = elgg_get_config('debug'); + elgg_set_config('debug', null); + foreach ($viewtypes as $viewtype) { elgg_set_viewtype($viewtype); foreach ($CONFIG->views->simplecache as $view) { @@ -228,6 +232,7 @@ function elgg_regenerate_simplecache($viewtype = NULL) { datalist_set("simplecache_lastcached_$viewtype", $lastcached); } + elgg_set_config('debug', $old_debug); elgg_set_viewtype($original_viewtype); // needs to be set for links in html head |