public function cached($file)
{
if (!($cachePath = $this->cachePath())) {
return false;
}
$path = $cachePath . DS . ltrim(preg_replace('~:~', '', $file), DS);
if (!@file_exists($path)) {
return false;
}
$timestamp = filemtime($path);
if ($timestamp > filemtime($file) && $timestamp > $this->_watchedTimestamp) {
return $path;
}
return false;
}