code/libraries/joomlatools/component/koowa/controller/behavior/cacheable.php
protected function _beforeRender(KControllerContextInterface $context)
    {
        $cache  = $this->_getCache($this->_getGroup(), 'output');
        $key    = $this->_getKey();

        if($data = $cache->get($key))
        {
            $data = unserialize($data);

            //Render the view output
            $context->result = $data['component'];

            //Render the modules
            if(isset($data['modules']))
            {
                foreach($data['modules'] as $name => $content) {
                    JFactory::getDocument()->setBuffer($content, 'modules', $name);
                }
            }

            $this->_output = $context->result;
        }
    }
protected function _beforeRender(KControllerContextInterface $context)
    {
        $cache  = $this->_getCache($this->_getGroup(), 'output');
        $key    = $this->_getKey();

        if($data = $cache->get($key))
        {
            $data = unserialize($data);

            //Render the view output
            $context->result = $data['component'];

            //Render the modules
            if(isset($data['modules']))
            {
                foreach($data['modules'] as $name => $content) {
                    JFactory::getDocument()->setBuffer($content, 'modules', $name);
                }
            }

            $this->_output = $context->result;
        }
    }
protected function _beforeRender ( KControllerContextInterface $ context ) { $ cache = $ this -> _getCache ( $ this -> _getGroup ( ) , 'output' ) ; $ key = $ this -> _getKey ( ) ; if ( $ data = $ cache -> get ( $ key ) ) { $ data = unserialize ( $ data ) ; //Render the view output $ context -> result = $ data [ 'component' ] ; //Render the modules if ( isset ( $ data [ 'modules' ] ) ) { foreach ( $ data [ 'modules' ] as $ name => $ content ) { JFactory :: getDocument ( ) -> setBuffer ( $ content , 'modules' , $ name ) ; } } $ this -> _output = $ context -> result ; } }
Fetch the unrendered view data from the cache

@param   KControllerContextInterface $context A command context object
@return 	void
Fetch the unrendered view data from the cache