You are here

public function BoostCache::retrieve in Boost 8

Retrieve Boost cache file.

File

src/BoostCache.php, line 73
Contains Drupal\boost\BoostCache

Class

BoostCache
The BoostCache class.

Namespace

Drupal\boost

Code

public function retrieve() {
  $uri = $this->route
    ->getUri();
  if (!file_exists($uri)) {
    $this->logger
      ->notice('Route @uri not cached.', array(
      '@uri' => $uri,
    ));
    return false;
  }
  return $this->handler
    ->getCache($uri);
}