From 641838cc511079d028aad12f47e0afbc22d08478 Mon Sep 17 00:00:00 2001 From: brettp Date: Mon, 1 Feb 2010 06:44:14 +0000 Subject: Fixes #1261: Exceptions force an HTTP recache. git-svn-id: http://code.elgg.org/elgg/trunk@3884 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine/lib/elgglib.php') 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); } -- cgit v1.2.3