Skip to content
Permalink
Browse files

Refactored Controller::disableCache() to use the CakeResponse object,…

… method was also deprecated
  • Loading branch information...
lorenzo committed Aug 1, 2010
1 parent 60f504a commit f9c97383e962da994d125a68feb963594882ce08
Showing with 2 additions and 5 deletions.
  1. +2 −5 cake/libs/controller/controller.php
@@ -864,13 +864,10 @@ public function referer($default = null, $local = false) {
*
* @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();
}
/**

0 comments on commit f9c9738

Please sign in to comment.
You can’t perform that action at this time.