private function CachedReader::isCacheFresh

Check if cache is fresh

Parameters

string $cacheKey:

\ReflectionClass $class:

Return value

bool

1 call to CachedReader::isCacheFresh()
CachedReader::fetchFromCache in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/CachedReader.php
Fetches a value from the cache.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/CachedReader.php, line 242

Class

CachedReader
A cache aware annotation reader.

Namespace

Doctrine\Common\Annotations

Code

private function isCacheFresh($cacheKey, \ReflectionClass $class) {
  if (false === ($filename = $class
    ->getFilename())) {
    return true;
  }
  return $this->cache
    ->fetch('[C]' . $cacheKey) >= filemtime($filename);
}