Skip to content

Commit

Permalink
Removing cache comment stripping, they are harmless in html/xml.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 10, 2010
1 parent 1f5999f commit ee0dc78
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cake/libs/view/view.php
Expand Up @@ -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;
Expand Down

0 comments on commit ee0dc78

Please sign in to comment.