framework/caching/TagDependency.php
public static function invalidate($cache, $tags)
    {
        $keys = [];
        foreach ((array) $tags as $tag) {
            $keys[] = $cache->buildKey([__CLASS__, $tag]);
        }
        static::touchKeys($cache, $keys);
    }
public static function invalidate($cache, $tags)
    {
        $keys = [];
        foreach ((array) $tags as $tag) {
            $keys[] = $cache->buildKey([__CLASS__, $tag]);
        }
        static::touchKeys($cache, $keys);
    }
public static function invalidate ( $ cache , $ tags ) { $ keys = [ ] ; foreach ( ( array ) $ tags as $ tag ) { $ keys [ ] = $ cache -> buildKey ( [ __CLASS__ , $ tag ] ) ; } static :: touchKeys ( $ cache , $ keys ) ; }
Invalidates all of the cached data items that are associated with any of the specified [[tags]].
@param CacheInterface $cache the cache component that caches the data items
@param string|array $tags
Invalidates all of the cached data items that are associated with any of the specified [[ tags ]] .