PHP 클래스 Neos\Fusion\Core\Cache\RuntimeContentCache

Holds cache related runtime state.
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$addCacheSegmentMarkersToPlaceholders boolean
$cacheMetadata array Stack of cached segment metadata (lifetime)
$contentCache ContentCache
$enableContentCache boolean
$inCacheEntryPoint boolean
$propertyMapper Neos\Flow\Property\PropertyMapper
$runtime Neos\Fusion\Core\Runtime
$tags array

공개 메소드들

메소드 설명
__construct ( Runtime $runtime )
addTag ( string $key, string $value ) : void Adds a tag built from the given key and value.
enter ( array $configuration, string $typoScriptPath ) : array Enter an evaluation
evaluateUncached ( string $path, array $contextArray ) : mixed Evaluate a TypoScript path with a given context without content caching
getEnableContentCache ( ) : boolean
leave ( array $evaluateContext ) : void Leave the evaluation of a path
postProcess ( array $evaluateContext, object $tsObject, mixed $output ) : mixed Post process output for caching information
preEvaluate ( array &$evaluateContext, object $tsObject ) : array Check for cached evaluation and or collect metadata for evaluation
setEnableContentCache ( boolean $enableContentCache ) : void
unserializeContext ( array $contextArray ) : array

보호된 메소드들

메소드 설명
buildCacheIdentifierValues ( array $configuration, string $typoScriptPath, object $tsObject ) : array Builds an array of additional key / values which must go into the calculation of the cache entry identifier for a cached content segment.
buildCacheTags ( array $configuration, string $typoScriptPath, object $tsObject ) : array Builds an array of string which must be used as tags for the cache entry identifier of a specific cached content segment.
flushTags ( ) : array Resets the assigned tags, returning the previously set tags.

메소드 상세

__construct() 공개 메소드

public __construct ( Runtime $runtime )
$runtime Neos\Fusion\Core\Runtime

addTag() 공개 메소드

Adds a tag built from the given key and value.
public addTag ( string $key, string $value ) : void
$key string
$value string
리턴 void

buildCacheIdentifierValues() 보호된 메소드

Builds an array of additional key / values which must go into the calculation of the cache entry identifier for a cached content segment.
protected buildCacheIdentifierValues ( array $configuration, string $typoScriptPath, object $tsObject ) : array
$configuration array
$typoScriptPath string
$tsObject object The actual TypoScript object
리턴 array

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

enter() 공개 메소드

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.
public enter ( array $configuration, string $typoScriptPath ) : array
$configuration array
$typoScriptPath string
리턴 array An evaluate context array that needs to be passed to subsequent calls to pass the current state

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)

flushTags() 보호된 메소드

Resets the assigned tags, returning the previously set tags.
protected flushTags ( ) : array
리턴 array

getEnableContentCache() 공개 메소드

public getEnableContentCache ( ) : boolean
리턴 boolean

leave() 공개 메소드

Has to be called in the same function calling enter() for every return path.
public leave ( array $evaluateContext ) : void
$evaluateContext array The current evaluation context
리턴 void

postProcess() 공개 메소드

The content cache stores cache segments with markers inside the generated content. This method creates cache segments and will process the final outer result (currentPathIsEntryPoint) to remove all cache markers and store cache entries.
public postProcess ( array $evaluateContext, object $tsObject, mixed $output ) : mixed
$evaluateContext array The current evaluation context
$tsObject object The current TypoScript object (for "this" in evaluations)
$output mixed The generated output after caching information was removed
리턴 mixed The post-processed output with cache segment markers or cleaned for the entry point

preEvaluate() 공개 메소드

Try to get a cached segment for the current path and return that with all uncached segments evaluated if it exists. Otherwise metadata for the cache lifetime is collected (if configured) for nested evaluations (to find the minimum maximumLifetime).
public preEvaluate ( array &$evaluateContext, object $tsObject ) : array
$evaluateContext array The current evaluation context
$tsObject object The current TypoScript object (for "this" in evaluations)
리턴 array Cache hit state as boolean and value as mixed

setEnableContentCache() 공개 메소드

public setEnableContentCache ( boolean $enableContentCache ) : void
$enableContentCache boolean
리턴 void

unserializeContext() 공개 메소드

public unserializeContext ( array $contextArray ) : array
$contextArray array
리턴 array

프로퍼티 상세

$addCacheSegmentMarkersToPlaceholders 보호되어 있는 프로퍼티

protected bool $addCacheSegmentMarkersToPlaceholders
리턴 boolean

$cacheMetadata 보호되어 있는 프로퍼티

Stack of cached segment metadata (lifetime)
protected array $cacheMetadata
리턴 array

$contentCache 보호되어 있는 프로퍼티

protected ContentCache,Neos\Fusion\Core\Cache $contentCache
리턴 ContentCache

$enableContentCache 보호되어 있는 프로퍼티

protected bool $enableContentCache
리턴 boolean

$inCacheEntryPoint 보호되어 있는 프로퍼티

protected bool $inCacheEntryPoint
리턴 boolean

$propertyMapper 보호되어 있는 프로퍼티

protected PropertyMapper,Neos\Flow\Property $propertyMapper
리턴 Neos\Flow\Property\PropertyMapper

$runtime 보호되어 있는 프로퍼티

protected Runtime,Neos\Fusion\Core $runtime
리턴 Neos\Fusion\Core\Runtime

$tags 보호되어 있는 프로퍼티

protected array $tags
리턴 array