CacheControl
in package
This is the CacheControl class.
This class has the logic to set de cache control.
This class is instantiable and is automatically overridden just by extending this class from the site layer: Core\Resources\
Tags
Table of Contents
$cacheHash | : string|null | |
---|---|---|
isCacheable() | This method returns if the request is cacheable. The parameter cacheHash | : bool |
resetInstance() | This method unsets the CacheControl instance. | : void |
setInitialCacheHash() | Set initial cacheHash value. | : void |
getRouteTypesNoStorables() | This method returns the routeTypes that can't be stored in cache. | : array<string|int, mixed> |
getRouteTypesStorables() | This method returns the routeTypes that can be stored in cache. | : array<string|int, mixed> |
Properties
$cacheHash
public
static string|null
$cacheHash
= null
Methods
isCacheable()
This method returns if the request is cacheable. The parameter cacheHash
public
final isCacheable([null|string $cacheHash = null ]) : bool
Parameters
- $cacheHash : null|string = null
Tags
Return values
bool —resetInstance()
This method unsets the CacheControl instance.
public
final static resetInstance() : void
Return values
void —setInitialCacheHash()
Set initial cacheHash value.
public
final static setInitialCacheHash(string $value) : void
Parameters
- $value : string
Return values
void —getRouteTypesNoStorables()
This method returns the routeTypes that can't be stored in cache.
protected
getRouteTypesNoStorables() : array<string|int, mixed>
Return values
array<string|int, mixed> —getRouteTypesStorables()
This method returns the routeTypes that can be stored in cache.
protected
getRouteTypesStorables() : array<string|int, mixed>