Neos.Fusion/Classes/Core/Cache/ContentCache.php
public function createCacheSegment($content, $fusionPath, array $cacheIdentifierValues, array $tags = [], $lifetime = null)
    {
        $cacheIdentifier = $this->renderContentCacheEntryIdentifier($fusionPath, $cacheIdentifierValues);
        $metadata = implode(',', $tags);
        if ($lifetime !== null) {
            $metadata .= ';' . $lifetime;
        }
        return self::CACHE_SEGMENT_START_TOKEN . $this->randomCacheMarker . $cacheIdentifier . self::CACHE_SEGMENT_SEPARATOR_TOKEN . $this->randomCacheMarker . $metadata . self::CACHE_SEGMENT_SEPARATOR_TOKEN . $this->randomCacheMarker . $content . self::CACHE_SEGMENT_END_TOKEN . $this->randomCacheMarker;
    }
public function createCacheSegment($content, $fusionPath, array $cacheIdentifierValues, array $tags = [], $lifetime = null)
    {
        $cacheIdentifier = $this->renderContentCacheEntryIdentifier($fusionPath, $cacheIdentifierValues);
        $metadata = implode(',', $tags);
        if ($lifetime !== null) {
            $metadata .= ';' . $lifetime;
        }
        return self::CACHE_SEGMENT_START_TOKEN . $this->randomCacheMarker . $cacheIdentifier . self::CACHE_SEGMENT_SEPARATOR_TOKEN . $this->randomCacheMarker . $metadata . self::CACHE_SEGMENT_SEPARATOR_TOKEN . $this->randomCacheMarker . $content . self::CACHE_SEGMENT_END_TOKEN . $this->randomCacheMarker;
    }
public function createCacheSegment ( $ content , $ fusionPath , array $ cacheIdentifierValues , array $ tags = [ ] , $ lifetime = null ) { $ cacheIdentifier = $ this -> renderContentCacheEntryIdentifier ( $ fusionPath , $ cacheIdentifierValues ) ; $ metadata = implode ( ',' , $ tags ) ; if ( $ lifetime !== null ) { $ metadata .= ';' . $ lifetime ; } return self :: CACHE_SEGMENT_START_TOKEN . $ this -> randomCacheMarker . $ cacheIdentifier . self :: CACHE_SEGMENT_SEPARATOR_TOKEN . $ this -> randomCacheMarker . $ metadata . self :: CACHE_SEGMENT_SEPARATOR_TOKEN . $ this -> randomCacheMarker . $ content . self :: CACHE_SEGMENT_END_TOKEN . $ this -> randomCacheMarker ; }
Takes the given content and adds markers for later use as a cached content segment.

This function will add a start and an end token to the beginning and end of the content and generate a cache
identifier based on the current Fusion path and additional values which were defined in the Fusion
configuration by the site integrator.

The whole cache segment (START TOKEN + IDENTIFIER + SEPARATOR TOKEN + original content + END TOKEN) is returned
as a string.

This method is called by the Fusion Runtime while rendering a Fusion object.

@param string $content The (partial) content which should potentially be cached later on
@param string $fusionPath The Fusion path that rendered the content, for example "page<Neos.NodeTypes:Page>/body<Acme.Demo:DefaultPageTemplate>/parts/breadcrumbMenu"
@param array $cacheIdentifierValues The values (simple type or implementing CacheAwareInterface) that should be used to create a cache identifier, will be sorted by keys for consistent ordering
@param array $tags Tags to add to the cache entry
@param integer $lifetime Lifetime of the cache segment in seconds. NULL for the default lifetime and 0 for unlimited lifetime.
@return string The original content, but with additional markers and a cache identifier added
Takes the given content and adds markers for later use as a cached content segment .