Refactored Controller::disableCache() to use the CakeResponse object, method was also deprecated

This commit is contained in:
José Lorenzo Rodríguez 2010-08-01 00:16:50 -04:30
parent 60f504a470
commit f9c97383e9

View file

@ -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();
}
/**