lib/Cache.php
function load($key): bool {
    $cacheKey = [__CLASS__, $key];
    $viewRenderer = $this->viewRenderer;

    /** @var \yii\caching\Cache $cache */
    $cache = $viewRenderer->cache;
    if (!$viewRenderer->enableCaching || !$cache->exists($cacheKey)) return false;

    eval("?>{$cache->get($cacheKey)}");
    return true;
  }
function load($key): bool {
    $cacheKey = [__CLASS__, $key];
    $viewRenderer = $this->viewRenderer;

    /** @var \yii\caching\Cache $cache */
    $cache = $viewRenderer->cache;
    if (!$viewRenderer->enableCaching || !$cache->exists($cacheKey)) return false;

    eval("?>{$cache->get($cacheKey)}");
    return true;
  }
function load ( $ key ) : bool { $ cacheKey = [ __CLASS__ , $ key ] ; $ viewRenderer = $ this -> viewRenderer ; /** @var \yii\caching\Cache $cache */ $ cache = $ viewRenderer -> cache ; if ( ! $ viewRenderer -> enableCaching || ! $ cache -> exists ( $ cacheKey ) ) return false ; eval ( "?>{$cache->get($cacheKey)}" ) ; return true ; }
Loads a compiled view from cache.
@param string $key The key identifying the view to be loaded.
@return bool `true` if the view was successfully loaded, otherwise `false`.
Loads a compiled view from cache .