Cache/TagManager.php
public function addTags($tags)
    {
        if (empty($tags) || !$this->isEnabled()) {
            return;
        }

        $tags = $this->encodeTags($tags);

        foreach ($tags as $tag) {
            if (!in_array($tag, $this->responseTags)) {
                $this->responseTags[] = $tag;
            }
        }
    }
public function addTags($tags)
    {
        if (empty($tags) || !$this->isEnabled()) {
            return;
        }

        $tags = $this->encodeTags($tags);

        foreach ($tags as $tag) {
            if (!in_array($tag, $this->responseTags)) {
                $this->responseTags[] = $tag;
            }
        }
    }
Adds tags (for the response).

@param mixed $tags