PHP 클래스 FluidTYPO3\Vhs\ViewHelpers\Render\CacheViewHelper

Caches the child content (any type supported as long as it can be serialized). Because of the added overhead you should only use this if what you are caching is complex enough that it performs many DB request (for example when displaying an object with many lazy properties which don't load until the template asks for the property value). In short, applies to just about the same use cases as any other cache - but remember that Fluid is already a very efficient rendering engine so don't just assume that using the ViewHelper will increase performance or decrease memory usage. Works forcibly, i.e. can only re-render its content if the cache is cleared. A CTRL+Refresh in the browser does nothing, even if a BE user is logged in. Only use this ViewHelper around content which you are absolutely sure it makes sense to cache along with an identity - for example, if rendering an uncached plugin which contains a Partial template that is in all aspects just a solid-state HTML representation of something like a list of current news. The cache behind this ViewHelper is the Extbase object cache, which is cleared when you clear the page content cache. Do not use on form elements, it will invalidate the checksum. Do not use around ViewHelpers which add header data or which interact with the PageRenderer or other "live" objects; this includes many of the VHS ViewHelpers!
상속: extends AbstractRenderViewHelper
파일 보기 프로젝트 열기: fluidtypo3/vhs

보호된 프로퍼티들

프로퍼티 타입 설명
$cache TYPO3\CMS\Core\Cache\Frontend\StringFrontend

공개 메소드들

메소드 설명
initialize ( ) : void
render ( mixed $identity, mixed $content = null ) : mixed Render

보호된 메소드들

메소드 설명
has ( string $id ) : boolean
retrieve ( string $id ) : mixed
store ( mixed $value, string $id ) : void

메소드 상세

has() 보호된 메소드

protected has ( string $id ) : boolean
$id string
리턴 boolean

initialize() 공개 메소드

public initialize ( ) : void
리턴 void

render() 공개 메소드

Render
public render ( mixed $identity, mixed $content = null ) : mixed
$identity mixed Identifier for the cached content (usage preferred)
$content mixed Value to be cached
리턴 mixed

retrieve() 보호된 메소드

protected retrieve ( string $id ) : mixed
$id string
리턴 mixed

store() 보호된 메소드

protected store ( mixed $value, string $id ) : void
$value mixed
$id string
리턴 void

프로퍼티 상세

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

protected StringFrontend,TYPO3\CMS\Core\Cache\Frontend $cache
리턴 TYPO3\CMS\Core\Cache\Frontend\StringFrontend