Documentation

StaticViewFunction extends BaseFunction
in package

Allows the view to directly disable static view cache.

Note this disables the static cache for the ENTIRE view, not just the partial or included template, but the entire output.

Tags
CeoDocs

(topic='twig', page='self', name='twigStaticview', title='Static View')

Table of Contents

__construct()  : mixed
getCacheControlTag()  : string
Static function as it's called elsewhere.
getDI()  : mixed
getFunctionName()  : mixed
getFunctionOptions()  : array<string|int, mixed>
Return function options Allows the function to automatically escape HTML strings
handle()  : string
Modify the cache output, mostly just disable it

Methods

__construct()

public __construct() : mixed
Return values
mixed

getCacheControlTag()

Static function as it's called elsewhere.

public static getCacheControlTag() : string

..

Return values
string

getFunctionOptions()

Return function options Allows the function to automatically escape HTML strings

public getFunctionOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

handle()

Modify the cache output, mostly just disable it

public handle(mixed $opts) : string
{{ cacheManager({'disable': true}) }}
Parameters
$opts : mixed
Tags
CeoDocsInclude

(as='cacheManager')

Return values
string

Cache control tag

Search results