core/traits/CacheableTrait.php
public function isCachable()
    {
        if ($this->_cachable === null) {
            $this->_cachable = Yii::$app->has('cache') ? true : false;
        }
    
        return $this->_cachable;
    }
public function isCachable()
    {
        if ($this->_cachable === null) {
            $this->_cachable = Yii::$app->has('cache') ? true : false;
        }
    
        return $this->_cachable;
    }
public function isCachable ( ) { if ( $ this -> _cachable === null ) { $ this -> _cachable = Yii :: $ app -> has ( 'cache' ) ? true : false ; } return $ this -> _cachable ; }
Check if the current configuration of the application and the property allows a caching of the
language container data.

@return boolean
Check if the current configuration of the application and the property allows a caching of the language container data .