CacheMacro
final class CacheMacro implements IMacro
Macro {cache} ... {/cache} for Latte v2
Methods
void
initialize()
Initializes before template parsing.
finalize()
Finishes template parsing.
bool
nodeOpened(MacroNode $node)
New node is found.
void
nodeClosed(MacroNode $node)
Node is closed.
static void
initRuntime(Template $template)
No description
static OutputHelper|stdClass|null
createCache(Storage $cacheStorage, string $key, array|null $parents, array|null $args = null)
Starts the output cache. Returns Nette\Caching\OutputHelper object if buffering was started.
static void
endCache(array $parents, array|null $args = null)
Ends the output cache.
static void
rollback(array $parents)
No description
Details
at line 31
void
initialize()
Initializes before template parsing.
at line 41
finalize()
Finishes template parsing.
at line 53
bool
nodeOpened(MacroNode $node)
New node is found.
at line 74
void
nodeClosed(MacroNode $node)
Node is closed.
at line 91
static void
initRuntime(Template $template)
No description
at line 105
static OutputHelper|stdClass|null
createCache(Storage $cacheStorage, string $key, array|null $parents, array|null $args = null)
Starts the output cache. Returns Nette\Caching\OutputHelper object if buffering was started.
at line 137
static void
endCache(array $parents, array|null $args = null)
Ends the output cache.
at line 161
static void
rollback(array $parents)
No description
Traits
SmartObject