]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #1261: Exceptions force an HTTP recache.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 06:44:14 +0000 (06:44 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 1 Feb 2010 06:44:14 +0000 (06:44 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3884 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/elgglib.php

index 8999a9c96135699b3b23c864b0fbccbeba778125..35904176cf880e1c23aba0eb29e254de0ae4af32 100644 (file)
@@ -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);
 }