FOF30\View\Engine\CompilingEngine::isCached PHP Метод

isCached() защищенный Метод

protected isCached ( $path )
    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;
    }