_tags = $tags; ob_start(array($this, '_flush')); ob_implicit_flush(false); $this->_idStack[] = $id; return false; } /** * callback for output buffering * (shouldn't really be called manually) * * @param string $data Buffered output * @return string Data to send to browser */ public function _flush($data) { $id = array_pop($this->_idStack); if (is_null($id)) { Zend_Cache::throwException('use of _flush() without a start()'); } file_put_contents('/var/www/data.dump', $data); $this->save($data, $id, $this->_tags); return $data; } }