Cache\Taggable\TaggablePoolTrait::clearTags PHP Method

clearTags() public method

public clearTags ( array $tags ) : boolean
$tags array
return boolean
    public function clearTags(array $tags)
    {
        $itemIds = [];
        foreach ($tags as $tag) {
            $itemIds = array_merge($itemIds, $this->getList($this->getTagKey($tag)));
        }
        // Remove all items with the tag
        $success = $this->deleteItems($itemIds);
        if ($success) {
            // Remove the tag list
            foreach ($tags as $tag) {
                $this->removeList($this->getTagKey($tag));
            }
        }
        return $success;
    }