PageCache
in package
implements
FilterInterface
Page Cache filter
Table of Contents
Interfaces
- FilterInterface
- Filter interface
Properties
- $cacheStatusCodes : array<int, int>
- $pageCache : ResponseCache
Methods
- __construct() : mixed
- after() : ResponseInterface|null
- Cache the page.
- before() : ResponseInterface|null
- Checks page cache and return if found.
Properties
$cacheStatusCodes read-only
private
array<int, int>
$cacheStatusCodes
$pageCache read-only
private
ResponseCache
$pageCache
Methods
__construct()
public
__construct([Cache|null $config = null ]) : mixed
Parameters
- $config : Cache|null = null
after()
Cache the page.
public
after(RequestInterface $request, ResponseInterface $response[, array<string|int, mixed>|null $arguments = null ]) : ResponseInterface|null
Parameters
- $request : RequestInterface
- $response : ResponseInterface
- $arguments : array<string|int, mixed>|null = null
Return values
ResponseInterface|nullbefore()
Checks page cache and return if found.
public
before(RequestInterface $request[, array<string|int, mixed>|null $arguments = null ]) : ResponseInterface|null
Parameters
- $request : RequestInterface
- $arguments : array<string|int, mixed>|null = null