function end($returning = false) { if ($this->writethis) { $this->content = ob_get_contents(); ob_clean(); WRA::writeCache($this->content, $this->name); } if ($this->cacheon) { ob_end_clean(); if (!$returning) { WRA::e($this->content); unset($this->content); } else { return $this->content; } } }