protected function isCached($path)
{
if (!$this->compiler->isCacheable()) {
return false;
}
$cachePath = $this->getCachePath($path);
if (!file_exists($cachePath)) {
return false;
}
$cacheTime = filemtime($cachePath);
$fileTime = filemtime($path);
return $fileTime <= $cacheTime;
}