Neos\Fusion\Core\Cache\RuntimeContentCache::evaluateUncached PHP Method

evaluateUncached() public method

This is used to render uncached segments "out of band" in getCachedSegment of ContentCache.
public evaluateUncached ( string $path, array $contextArray ) : mixed
$path string
$contextArray array
return mixed TODO Find another way of disabling the cache (especially to allow cached content inside uncached content)
    public function evaluateUncached($path, array $contextArray)
    {
        $previousEnableContentCache = $this->enableContentCache;
        $this->enableContentCache = false;
        $this->runtime->pushContextArray($contextArray);
        $result = $this->runtime->evaluate($path);
        $this->runtime->popContext();
        $this->enableContentCache = $previousEnableContentCache;
        return $result;
    }