private function CachedReader::isCacheFresh in Plug 7
Checks if the cache is fresh.
Parameters
string $cacheKey:
\ReflectionClass $class:
Return value
boolean
1 call to CachedReader::isCacheFresh()
- CachedReader::fetchFromCache in lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ CachedReader.php - Fetches a value from the cache.
File
- lib/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ CachedReader.php, line 227
Class
- CachedReader
- A cache aware annotation reader.
Namespace
Doctrine\Common\AnnotationsCode
private function isCacheFresh($cacheKey, \ReflectionClass $class) {
if (false === ($filename = $class
->getFilename())) {
return true;
}
return $this->cache
->fetch('[C]' . $cacheKey) >= filemtime($filename);
}