protected function _stopBufferToMessages()
    {
        if (!Mage::getStoreConfigFlag('system/cron/enableJobOutputBuffer')) {
            return $this;
        }

        if (!$this->_redirect) {
            return $this;
        }

        ob_end_flush();
        $this->addMessages('---END---' . PHP_EOL);

        $this->_redirect = false;

        return $this;
    }
protected function _stopBufferToMessages()
    {
        if (!Mage::getStoreConfigFlag('system/cron/enableJobOutputBuffer')) {
            return $this;
        }

        if (!$this->_redirect) {
            return $this;
        }

        ob_end_flush();
        $this->addMessages('---END---' . PHP_EOL);

        $this->_redirect = false;

        return $this;
    }
protected function _stopBufferToMessages ( ) { if ( ! Mage :: getStoreConfigFlag ( 'system/cron/enableJobOutputBuffer' ) ) { return $ this ; } if ( ! $ this -> _redirect ) { return $ this ; } ob_end_flush ( ) ; $ this -> addMessages ( '---END---' . PHP_EOL ) ; $ this -> _redirect = false ; return $ this ; }
Stop redirecting all output to the messages field of this Schedule.
We use ob_end_flush to stop redirecting the output.

@return $this
Stop redirecting all output to the messages field of this Schedule . We use ob_end_flush to stop redirecting the output .