From 19f5a9b677c795a5852027f430d49683977d7d23 Mon Sep 17 00:00:00 2001 From: phpnut Date: Tue, 31 Oct 2006 06:52:04 +0000 Subject: [PATCH] Adding fix for #1556. Errors are no longer cached git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3774 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/error.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cake/libs/error.php b/cake/libs/error.php index 6297c4892..8bbf7c51d 100644 --- a/cake/libs/error.php +++ b/cake/libs/error.php @@ -65,8 +65,8 @@ class ErrorHandler extends Object{ } $this->controller =& new AppController(); - $this->controller->_initComponents(); + $this->controller->cacheAction = false; $this->__dispatch->start($this->controller); if (method_exists($this->controller, 'apperror')) { @@ -74,6 +74,7 @@ class ErrorHandler extends Object{ } } else { $this->controller =& new Controller(); + $this->controller->cacheAction = false; } if (DEBUG > 0 || $method == 'error') { call_user_func_array(array(&$this, $method), $messages);