/** * Removes all cache entries of this cache which are tagged by any of the specified tags. * * @param string[] $tags * @return void * @throws \InvalidArgumentException */ public function flushByTags(array $tags) { foreach ($tags as $tag) { if (!$this->isValidTag($tag)) { throw new \InvalidArgumentException('"' . $tag . '" is not a valid tag for a cache entry.', 1233057360); } } if ($this->backend instanceof TaggableBackendInterface) { $this->backend->flushByTags($tags); } }