Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing unused variables from CacheHelper::cache()

Removing non-existant variable output from generated cache files.
  • Loading branch information...
commit 3ad4dd63bff2a8a7e2528f988c904139e58a4728 1 parent 2db479d
@markstory markstory authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 cake/libs/view/helpers/cache.php
View
6 cake/libs/view/helpers/cache.php
@@ -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;
@@ -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)) . '\'));
Please sign in to comment.
Something went wrong with that request. Please try again.