framework/web/widgets/COutputCache.php
protected function checkContentCache()
	{
		if((empty($this->requestTypes) || in_array(Yii::app()->getRequest()->getRequestType(),$this->requestTypes))
			&& ($this->_cache=$this->getCache())!==null)
		{
			if($this->duration>0 && ($data=$this->_cache->get($this->getCacheKey()))!==false)
			{
				$this->_content=$data[0];
				$this->_actions=$data[1];
				return true;
			}
			if($this->duration==0)
				$this->_cache->delete($this->getCacheKey());
			if($this->duration<=0)
				$this->_cache=null;
		}
		return false;
	}
protected function checkContentCache()
	{
		if((empty($this->requestTypes) || in_array(Yii::app()->getRequest()->getRequestType(),$this->requestTypes))
			&& ($this->_cache=$this->getCache())!==null)
		{
			if($this->duration>0 && ($data=$this->_cache->get($this->getCacheKey()))!==false)
			{
				$this->_content=$data[0];
				$this->_actions=$data[1];
				return true;
			}
			if($this->duration==0)
				$this->_cache->delete($this->getCacheKey());
			if($this->duration<=0)
				$this->_cache=null;
		}
		return false;
	}
protected function checkContentCache ( ) { if ( ( empty ( $ this -> requestTypes ) || in_array ( Yii :: app ( ) -> getRequest ( ) -> getRequestType ( ) , $ this -> requestTypes ) ) && ( $ this -> _cache = $ this -> getCache ( ) ) !== null ) { if ( $ this -> duration > 0 && ( $ data = $ this -> _cache -> get ( $ this -> getCacheKey ( ) ) ) !== false ) { $ this -> _content = $ data [ 0 ] ; $ this -> _actions = $ data [ 1 ] ; return true ; } if ( $ this -> duration == 0 ) $ this -> _cache -> delete ( $ this -> getCacheKey ( ) ) ; if ( $ this -> duration <= 0 ) $ this -> _cache = null ; } return false ; }
Looks for content in cache.
@return boolean whether the content is found in cache.
Looks for content in cache .