Reference
C
Class

ApiPlatform\HttpCache\VarnishPurger

Purges Varnish.

class ApiPlatform\HttpCache\VarnishPurger implements `<a href="/docs/reference/HttpCache/PurgerInterface">ApiPlatform\HttpCache\PurgerInterface</a>`
{
    public __construct(array&lt;int, Symfony\Contracts\HttpClient\HttpClientInterface&gt; $clients, int $maxHeaderLength)
    public purge(array $iris): null
    public getResponseHeaders(array $iris): array
}
class ApiPlatform\HttpCache\VarnishPurger implements `<a href="/docs/reference/HttpCache/PurgerInterface">ApiPlatform\HttpCache\PurgerInterface</a>`
{
    public __construct(array&lt;int, Symfony\Contracts\HttpClient\HttpClientInterface&gt; $clients, int $maxHeaderLength)
    public purge(array $iris): null
    public getResponseHeaders(array $iris): array
}

Methods

__construct

public __construct(array&lt;int, Symfony\Contracts\HttpClient\HttpClientInterface&gt; $clients, int $maxHeaderLength)
public __construct(array&lt;int, Symfony\Contracts\HttpClient\HttpClientInterface&gt; $clients, int $maxHeaderLength)

Parameters

clientsarray<int, Symfony\Contracts\HttpClient\HttpClientInterface>
maxHeaderLengthint

purge

Purges all responses containing the given resources from the cache.

public purge(array $iris): null
public purge(array $iris): null

Parameters

irisarray

Returns

null

getResponseHeaders

Get the response header containing purged tags.

public getResponseHeaders(array $iris): array
public getResponseHeaders(array $iris): array

Parameters

irisarray

Returns

array

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop