Skip to content

Commit

Permalink
Refactored Controller::disableCache() to use the CakeResponse object,…
Browse files Browse the repository at this point in the history
… method was also deprecated
  • Loading branch information
lorenzo committed Aug 1, 2010
1 parent 60f504a commit f9c9738
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cake/libs/controller/controller.php
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit f9c9738

Please sign in to comment.