PHP Class Sulu\Component\HttpCache\HttpCache

Inheritance: extends Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache
Exibir arquivo Open project: sulu/sulu

Public Methods

Method Description
handle ( Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true )

Protected Methods

Method Description
invalidate ( Request $request, $catch = false )
isFreshEnough ( Request $request, Response $entry )

Private Methods

Method Description
getReverseProxyTtl ( Response $response ) : integer | null Returns the response reverse-proxy cache TTL in seconds.
isFreshCacheEntry ( Response $entry ) : boolean Returns true if the cache entry is "fresh".

Method Details

handle() public method

public handle ( Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true )
$request Symfony\Component\HttpFoundation\Request

invalidate() protected method

protected invalidate ( Request $request, $catch = false )
$request Symfony\Component\HttpFoundation\Request

isFreshEnough() protected method

protected isFreshEnough ( Request $request, Response $entry )
$request Symfony\Component\HttpFoundation\Request
$entry Symfony\Component\HttpFoundation\Response