Tries to retrieve the specified content segment from the cache – further nested inline segments are retrieved
as well and segments which were not cacheable are rendered.
public getCachedSegment ( Closure $uncachedCommandCallback, string $typoScriptPath, array $cacheIdentifierValues, boolean $addCacheSegmentMarkersToPlaceholders = false ) : string | boolean | ||
$uncachedCommandCallback | Closure | A callback to process commands in uncached segments |
$typoScriptPath | string | TypoScript path identifying the TypoScript object to retrieve from the content cache |
$cacheIdentifierValues | array | Further values which play into the cache identifier hash, must be the same as the ones specified while the cache entry was written |
$addCacheSegmentMarkersToPlaceholders | boolean | If cache segment markers should be added – this makes sense if the cached segment is about to be included in a not-yet-cached segment |
return | string | boolean | The segment with replaced cache placeholders, or FALSE if a segment was missing in the cache |