ReverseProxyCloudrexx
extends ReverseProxy
in package
Abstract representation of a caching reverse proxy
Tags
Table of Contents
Properties
- $hostname : string
- $port : int
- $ssiProcessor : SsiProcessor
Methods
- __construct() : mixed
- Initializes a reverse proxy instance
- clearCache() : mixed
- Drops all pages cached by this reverse proxy
- clearCachePage() : mixed
- Drops a page cached by this reverse proxy
- getSsiProcessor() : SsiProcessor
- Gets SSI processor used for this proxy
- setSsiProcessor() : mixed
- Sets SSI processor used for this proxy
- clearCachePageForDomainAndPort() : mixed
- Clears a cache page Please note that this will not work during an ESI sub-request.
- globDrop() : mixed
- toggleHttps() : mixed
Properties
$hostname
protected
string
$hostname
Reverse proxy's hostname
$port
protected
int
$port
Reverse proxy's port
$ssiProcessor
protected
SsiProcessor
$ssiProcessor
SSI processor used for this proxy
Methods
__construct()
Initializes a reverse proxy instance
public
__construct(string $hostname, int $port) : mixed
Parameters
- $hostname : string
-
Proxy hostname
- $port : int
-
Proxy port
clearCache()
Drops all pages cached by this reverse proxy
public
clearCache(array<string|int, mixed> $domainsAndPorts) : mixed
Each entry in the array $domainsAndPorts has the following structure:
array(0 =>
Parameters
- $domainsAndPorts : array<string|int, mixed>
-
List of domains and ports that can be used to access this website
clearCachePage()
Drops a page cached by this reverse proxy
public
clearCachePage(mixed $urlPattern, mixed $domainsAndPorts) : mixed
This method has been overwritten as the Cloudrexx ESI cache is not stored specific per domain and/or port. Therefore, we only have to call the flush operation (on clearCachePageForDomainAndPort()) once.
Parameters
- $urlPattern : mixed
-
Drop all pages that match the pattern, for exact format, make educated guesses
- $domainsAndPorts : mixed
-
List of domains and ports that can be used to access this website
getSsiProcessor()
Gets SSI processor used for this proxy
public
getSsiProcessor() : SsiProcessor
Return values
SsiProcessor —SSI processor used for this proxy
setSsiProcessor()
Sets SSI processor used for this proxy
public
setSsiProcessor(SsiProcessor $ssiProcessor) : mixed
Parameters
- $ssiProcessor : SsiProcessor
-
New SSI processor
clearCachePageForDomainAndPort()
Clears a cache page Please note that this will not work during an ESI sub-request.
protected
clearCachePageForDomainAndPort(string $urlPattern, string $domain, int $port) : mixed
Parameters
- $urlPattern : string
-
Drop all pages that match the pattern, for exact format, make educated guesses
- $domain : string
-
Domain name to drop cache page of. Not used by ReverseProxyCloudrexx
- $port : int
-
Port to drop cache page of. Not used by ReverseProxyCloudrexx
globDrop()
protected
globDrop(mixed $glob) : mixed
Parameters
- $glob : mixed
toggleHttps()
protected
toggleHttps(mixed &$url) : mixed
Parameters
- $url : mixed