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
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 —getDI()
public
getDI() : mixed
Return values
mixed —getFunctionName()
public
getFunctionName() : mixed
Return values
mixed —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
Return values
string —Cache control tag