Neos\Fusion\Core\Cache\RuntimeContentCache::buildCacheTags PHP Метод

buildCacheTags() защищенный Метод

Builds an array of string which must be used as tags for the cache entry identifier of a specific cached content segment.
protected buildCacheTags ( array $configuration, string $typoScriptPath, object $tsObject ) : array
$configuration array
$typoScriptPath string
$tsObject object The actual TypoScript object
Результат array
    protected function buildCacheTags(array $configuration, $typoScriptPath, $tsObject)
    {
        $cacheTags = [];
        if (isset($configuration['entryTags'])) {
            foreach ($configuration['entryTags'] as $tagKey => $tagValue) {
                $tagValue = $this->runtime->evaluate($typoScriptPath . '/__meta/cache/entryTags/' . $tagKey, $tsObject);
                if (is_array($tagValue)) {
                    $cacheTags = array_merge($cacheTags, $tagValue);
                } elseif ((string) $tagValue !== '') {
                    $cacheTags[] = $tagValue;
                }
            }
            foreach ($this->flushTags() as $tagKey => $tagValue) {
                $cacheTags[] = $tagValue;
            }
        } else {
            $cacheTags = [ContentCache::TAG_EVERYTHING];
        }
        return array_unique($cacheTags);
    }