Skip to content
This repository
Browse code

Removing unused variables from CacheHelper::cache()

Removing non-existant variable output from generated cache files.
  • Loading branch information...
commit 3ad4dd63bff2a8a7e2528f988c904139e58a4728 1 parent 2db479d
Mark Story authored December 28, 2009

Showing 1 changed file with 0 additions and 6 deletions. Show diff stats Hide diff stats

  1. 6  cake/libs/view/helpers/cache.php
6  cake/libs/view/helpers/cache.php
@@ -67,10 +67,6 @@ function cache($file, $out, $cache = false) {
67 67
 		$cacheTime = 0;
68 68
 		$useCallbacks = false;
69 69
 		if (is_array($this->cacheAction)) {
70  
-			$check = Inflector::slug(Router::reverse($this->params));
71  
-			$base = trim(str_replace('/', '_', $this->base), '_');
72  
-			$check = trim(str_replace($base, '', $check), '_');
73  
-
74 70
 			$keys = array_keys($this->cacheAction);
75 71
 			$index = null;
76 72
 
@@ -233,8 +229,6 @@ function __writeFile($content, $timestamp, $useCallbacks = false) {
233 229
 				$controller->layout = $this->layout = \'' . $this->layout. '\';
234 230
 				$controller->webroot = $this->webroot = \'' . $this->webroot . '\';
235 231
 				$controller->here = $this->here = \'' . $this->here . '\';
236  
-				$controller->namedArgs  = $this->namedArgs  = \'' . $this->namedArgs . '\';
237  
-				$controller->argSeparator = $this->argSeparator = \'' . $this->argSeparator . '\';
238 232
 				$controller->params = $this->params = unserialize(stripslashes(\'' . addslashes(serialize($this->params)) . '\'));
239 233
 				$controller->action = $this->action = unserialize(\'' . serialize($this->action) . '\');
240 234
 				$controller->data = $this->data = unserialize(stripslashes(\'' . addslashes(serialize($this->data)) . '\'));

0 notes on commit 3ad4dd6

Please sign in to comment.
Something went wrong with that request. Please try again.