private function getCacheTags($tagId, $pathString, array $tags = [])
    {
        $tags[] = 'tag-' . $tagId;

        foreach (explode('/', trim($pathString, '/')) as $pathId) {
            $tags[] = 'tag-path-' . $pathId;
        }

        return $tags;
    }
private function getCacheTags($tagId, $pathString, array $tags = [])
    {
        $tags[] = 'tag-' . $tagId;

        foreach (explode('/', trim($pathString, '/')) as $pathId) {
            $tags[] = 'tag-path-' . $pathId;
        }

        return $tags;
    }
private function getCacheTags ( $ tagId , $ pathString , array $ tags = [ ] ) { $ tags [ ] = 'tag-' . $ tagId ; foreach ( explode ( '/' , trim ( $ pathString , '/' ) ) as $ pathId ) { $ tags [ ] = 'tag-path-' . $ pathId ; } return $ tags ; }
Return relevant cache tags so cache can be purged reliably.

@param int $tagId
@param string $pathString
@param array $tags optional, can be used to specify additional tags

@return array
Return relevant cache tags so cache can be purged reliably .