Neos\Cache\Backend\PdoBackend::flush PHP 메소드

flush() 공개 메소드

Removes all cache entries of this cache.
public flush ( ) : void
리턴 void
    public function flush()
    {
        $this->connect();
        $statementHandle = $this->databaseHandle->prepare('DELETE FROM "tags" WHERE "context"=? AND "cache"=?');
        $statementHandle->execute([md5($this->environmentConfiguration->getApplicationIdentifier()), $this->cacheIdentifier]);
        $statementHandle = $this->databaseHandle->prepare('DELETE FROM "cache" WHERE "context"=? AND "cache"=?');
        $statementHandle->execute([md5($this->environmentConfiguration->getApplicationIdentifier()), $this->cacheIdentifier]);
    }