Neos\Fusion\Core\Cache\RuntimeContentCache::evaluateUncached PHP 메소드

evaluateUncached() 공개 메소드

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
리턴 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;
    }