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
see
CacheControl::getInstance()
see
CacheControl::setCacheHeaders()
see
CacheControl::getRouteTypesNoStorables()
see
CacheControl::getRouteTypesStorables()

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

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
throws
CommerceException
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>
Return values
array<string|int, mixed>

Search results