Craft\MinimeeService::cacheExists PHP 메소드

cacheExists() 보호된 메소드

Checks if the cache exists.
protected cacheExists ( ) : Bool
리턴 Bool
    protected function cacheExists()
    {
        foreach ($this->assets as $asset) {
            $this->setMaxCacheTimestamp($asset->lastTimeModified);
            $this->appendToCacheBase($asset->filename);
        }
        if (!IOHelper::fileExists($this->makePathToCacheFilename())) {
            return false;
        }
        if ($this->settings->useResourceCache()) {
            $cacheLastTimeModified = IOHelper::getLastTimeModified($this->makePathToCacheFilename());
            if ($cacheLastTimeModified->getTimestamp() < $this->cacheTimestamp) {
                return false;
            }
        }
        return true;
    }