diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-01 06:44:14 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-02-01 06:44:14 +0000 |
commit | 641838cc511079d028aad12f47e0afbc22d08478 (patch) | |
tree | 36642146871a906b0616dd0939e99ad8698cea3e /engine/lib | |
parent | 8015d39e368efb9c568f44f1b2b29c883994557f (diff) | |
download | elgg-641838cc511079d028aad12f47e0afbc22d08478.tar.gz elgg-641838cc511079d028aad12f47e0afbc22d08478.tar.bz2 |
Fixes #1261: Exceptions force an HTTP recache.
git-svn-id: http://code.elgg.org/elgg/trunk@3884 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/elgglib.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 8999a9c96..35904176c 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -1949,6 +1949,11 @@ function __elgg_php_exception_handler($exception) { ob_end_clean(); // Wipe any existing output buffer + // make sure the error isn't cached + header("Cache-Control: no-cache, must-revalidate", true); + header('Expires: Fri, 05 Feb 1982 00:00:00 -0500', true); + //header("Internal Server Error", true, 500); + $body = elgg_view("messages/exceptions/exception",array('object' => $exception)); page_draw(elgg_echo('exception:title'), $body); } |