protected function shouldLoadCache($path, $cachePath)
{
if (!file_exists($cachePath)) {
return false;
}
if (!$this->stat) {
return true;
}
// if the cache file is more recent than the real file,
// the cache file should be loaded
return filemtime($cachePath) > filemtime($path);
}