public function flush()
    {
        if (!empty($this->invalidateTags)) {
            $this->tagHandler->invalidateTags($this->invalidateTags);
        }

        if (!empty($this->responseTags)) {
            $this->tagHandler->addTags($this->responseTags);
        }

        $this->reset();
    }