Skip to content
Permalink
Browse files

Removing cache comment stripping, they are harmless in html/xml.

  • Loading branch information...
markstory committed Nov 10, 2010
1 parent 1f5999f commit ee0dc785b20c19c3ece9a9bf747856f4139cdbe9
Showing with 0 additions and 9 deletions.
  1. +0 −9 cake/libs/view/view.php
@@ -413,15 +413,6 @@ public function render($action = null, $layout = null, $file = null) {
}
if ($layout && $this->autoLayout) {
$this->output = $this->renderLayout($this->output, $layout);
$isCached = (
isset($this->Helpers->Cache) ||
Configure::read('Cache.check') === true
);
if ($isCached) {
$replace = array('<!--nocache-->', '<!--/nocache-->');
$this->output = str_replace($replace, '', $this->output);
}
}
$this->hasRendered = true;
return $this->output;

0 comments on commit ee0dc78

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