EsiResponseCacheStrategy deprecated

class EsiResponseCacheStrategy extends ResponseCacheStrategy implements EsiResponseCacheStrategyInterface

deprecated

since version 2.6, to be removed in 3.0. Use ResponseCacheStrategy instead

EsiResponseCacheStrategy knows how to compute the Response cache HTTP header based on the different ESI response cache headers.

This implementation changes the master response TTL to the smallest TTL received or force validation if one of the ESI has validation cache strategy.

Methods

add(Response $response)

Adds a Response.

from ResponseCacheStrategy
update(Response $response)

Updates the Response HTTP headers based on the embedded Responses.

from ResponseCacheStrategy

Details

add(Response $response)

Adds a Response.

Parameters

Response $response

update(Response $response)

Updates the Response HTTP headers based on the embedded Responses.

Parameters

Response $response
doc_Symfony
2016-10-28 06:15:24
Comments
Leave a Comment

Please login to continue.