From f9c97383e962da994d125a68feb963594882ce08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Sun, 1 Aug 2010 00:16:50 -0430 Subject: [PATCH] Refactored Controller::disableCache() to use the CakeResponse object, method was also deprecated --- cake/libs/controller/controller.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cake/libs/controller/controller.php b/cake/libs/controller/controller.php index 8d0abaebd..375686086 100644 --- a/cake/libs/controller/controller.php +++ b/cake/libs/controller/controller.php @@ -864,13 +864,10 @@ class Controller extends Object { * * @return void * @link http://book.cakephp.org/view/988/disableCache + * @deprecated */ public function disableCache() { - header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); - header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - header("Cache-Control: no-store, no-cache, must-revalidate"); - header("Cache-Control: post-check=0, pre-check=0", false); - header("Pragma: no-cache"); + $this->response->disableCache(); } /**