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