Neos.Fusion/Classes/Core/Cache/RuntimeContentCache.php
public function enter(array $configuration, $fusionPath)
    {
        $cacheForPathEnabled = isset($configuration['mode']) && ($configuration['mode'] === 'cached' || $configuration['mode'] === 'dynamic');
        $cacheForPathDisabled = isset($configuration['mode']) && ($configuration['mode'] === 'uncached' || $configuration['mode'] === 'dynamic');

        if ($cacheForPathDisabled && (!isset($configuration['context']) || $configuration['context'] === [])) {
            throw new Exception(sprintf('Missing @cache.context configuration for path "%s". An uncached segment must have one or more context variable names configured.', $fusionPath), 1395922119);
        }

        $currentPathIsEntryPoint = false;
        if ($this->enableContentCache && $cacheForPathEnabled) {
            if ($this->inCacheEntryPoint === null) {
                $this->inCacheEntryPoint = true;
                $currentPathIsEntryPoint = true;
            }
        }

        return [
            'configuration' => $configuration,
            'fusionPath' => $fusionPath,
            'cacheForPathEnabled' => $cacheForPathEnabled,
            'cacheForPathDisabled' => $cacheForPathDisabled,
            'currentPathIsEntryPoint' => $currentPathIsEntryPoint
        ];
    }
public function enter(array $configuration, $fusionPath)
    {
        $cacheForPathEnabled = isset($configuration['mode']) && ($configuration['mode'] === 'cached' || $configuration['mode'] === 'dynamic');
        $cacheForPathDisabled = isset($configuration['mode']) && ($configuration['mode'] === 'uncached' || $configuration['mode'] === 'dynamic');

        if ($cacheForPathDisabled && (!isset($configuration['context']) || $configuration['context'] === [])) {
            throw new Exception(sprintf('Missing @cache.context configuration for path "%s". An uncached segment must have one or more context variable names configured.', $fusionPath), 1395922119);
        }

        $currentPathIsEntryPoint = false;
        if ($this->enableContentCache && $cacheForPathEnabled) {
            if ($this->inCacheEntryPoint === null) {
                $this->inCacheEntryPoint = true;
                $currentPathIsEntryPoint = true;
            }
        }

        return [
            'configuration' => $configuration,
            'fusionPath' => $fusionPath,
            'cacheForPathEnabled' => $cacheForPathEnabled,
            'cacheForPathDisabled' => $cacheForPathDisabled,
            'currentPathIsEntryPoint' => $currentPathIsEntryPoint
        ];
    }
public function enter ( array $ configuration , $ fusionPath ) { $ cacheForPathEnabled = isset ( $ configuration [ 'mode' ] ) && ( $ configuration [ 'mode' ] === 'cached' || $ configuration [ 'mode' ] === 'dynamic' ) ; $ cacheForPathDisabled = isset ( $ configuration [ 'mode' ] ) && ( $ configuration [ 'mode' ] === 'uncached' || $ configuration [ 'mode' ] === 'dynamic' ) ; if ( $ cacheForPathDisabled && ( ! isset ( $ configuration [ 'context' ] ) || $ configuration [ 'context' ] === [ ] ) ) { throw new Exception ( sprintf ( 'Missing @cache.context configuration for path "%s". An uncached segment must have one or more context variable names configured.' , $ fusionPath ) , 1395922119 ) ; } $ currentPathIsEntryPoint = false ; if ( $ this -> enableContentCache && $ cacheForPathEnabled ) { if ( $ this -> inCacheEntryPoint === null ) { $ this -> inCacheEntryPoint = true ; $ currentPathIsEntryPoint = true ; } } return [ 'configuration' => $ configuration , 'fusionPath' => $ fusionPath , 'cacheForPathEnabled' => $ cacheForPathEnabled , 'cacheForPathDisabled' => $ cacheForPathDisabled , 'currentPathIsEntryPoint' => $ currentPathIsEntryPoint ] ; }
Enter an evaluation

Needs to be called right before evaluation of a path starts to check the cache mode and set internal state
like the cache entry point.

@param array $configuration
@param string $fusionPath
@return array An evaluate context array that needs to be passed to subsequent calls to pass the current state
@throws Exception
Enter an evaluation