Skip to content

Commit

Permalink
Removing unused variables from CacheHelper::cache()
Browse files Browse the repository at this point in the history
Removing non-existant variable output from generated cache files.
  • Loading branch information
markstory committed Dec 29, 2009
1 parent 2db479d commit 3ad4dd6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cake/libs/view/helpers/cache.php
Expand Up @@ -67,10 +67,6 @@ function cache($file, $out, $cache = false) {
$cacheTime = 0;
$useCallbacks = false;
if (is_array($this->cacheAction)) {
$check = Inflector::slug(Router::reverse($this->params));
$base = trim(str_replace('/', '_', $this->base), '_');
$check = trim(str_replace($base, '', $check), '_');

$keys = array_keys($this->cacheAction);
$index = null;

Expand Down Expand Up @@ -233,8 +229,6 @@ function __writeFile($content, $timestamp, $useCallbacks = false) {
$controller->layout = $this->layout = \'' . $this->layout. '\';
$controller->webroot = $this->webroot = \'' . $this->webroot . '\';
$controller->here = $this->here = \'' . $this->here . '\';
$controller->namedArgs = $this->namedArgs = \'' . $this->namedArgs . '\';
$controller->argSeparator = $this->argSeparator = \'' . $this->argSeparator . '\';
$controller->params = $this->params = unserialize(stripslashes(\'' . addslashes(serialize($this->params)) . '\'));
$controller->action = $this->action = unserialize(\'' . serialize($this->action) . '\');
$controller->data = $this->data = unserialize(stripslashes(\'' . addslashes(serialize($this->data)) . '\'));
Expand Down

0 comments on commit 3ad4dd6

Please sign in to comment.