Airship\Engine\Continuum\Installers\Cabin::clearCache PHP 메소드

clearCache() 공개 메소드

Clear the cache files related to Cabins.
public clearCache ( ) : boolean
리턴 boolean
    public function clearCache() : bool
    {
        $name = $this->makeNamespace($this->supplier->getName(), $this->package);
        $toDelete = [\implode(DIRECTORY_SEPARATOR, [ROOT, 'tmp', 'cache', 'cargo-' . $name . '.cache.json']), \implode(DIRECTORY_SEPARATOR, [ROOT, 'tmp', 'cache', 'csp.' . $name . '.json']), \implode(DIRECTORY_SEPARATOR, [ROOT, 'tmp', 'cache', $name . '.motifs.json'])];
        foreach ($toDelete as $file) {
            if (\file_exists($file)) {
                \unlink($file);
            }
        }
        return parent::clearCache();
    }