PHP Class Sulu\Component\HttpCache\Handler\PublicHandler

Includes the TTL of the structure.
Inheritance: implements Sulu\Component\HttpCache\HandlerUpdateResponseInterface
ファイルを表示 Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Component\HttpCache\CacheLifetimeResolverInterface $cacheLifetimeResolver, integer $maxAge = 240, integer $sharedMaxAge = 960, boolean $usePageTtl = true )
updateResponse ( Response $response, Sulu\Component\Content\Compat\StructureInterface $structure )

Method Details

__construct() public method

public __construct ( Sulu\Component\HttpCache\CacheLifetimeResolverInterface $cacheLifetimeResolver, integer $maxAge = 240, integer $sharedMaxAge = 960, boolean $usePageTtl = true )
$cacheLifetimeResolver Sulu\Component\HttpCache\CacheLifetimeResolverInterface
$maxAge integer Cache max age in seconds
$sharedMaxAge integer Cache shared max age in seconds
$usePageTtl boolean Use page TTL

updateResponse() public method

public updateResponse ( Response $response, Sulu\Component\Content\Compat\StructureInterface $structure )
$response Symfony\Component\HttpFoundation\Response
$structure Sulu\Component\Content\Compat\StructureInterface