Pimcore\Cache\Backend\MysqlTable::remove PHP Method

remove() public method

public remove ( string $id ) : boolean
$id string
return boolean true if OK
    public function remove($id)
    {
        $this->getDb()->beginTransaction();
        try {
            $this->getDb()->delete("cache", "id = " . $this->getDb()->quote($id));
            $this->getDb()->delete("cache_tags", "id = '" . $id . "'");
            $this->getDb()->commit();
        } catch (\Exception $e) {
            $this->getDb()->rollBack();
            $this->truncate();
            return false;
        }
        return true;
    }