Documentation

ReverseProxy

AbstractYes

Abstract representation of a caching reverse proxy

Tags
copyright

CLOUDREXX CMS - CLOUDREXX AG

author

Michael Ritter michael.ritter@comvation.com

subpackage

lib_reverseproxy

link

cloudrexx homepage

since
5.0.0

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

Properties

Methods

__construct()

Initializes a reverse proxy instance

public __construct(string $hostname, int $port[, mixed $ssiProcessor = null ]) : mixed
Parameters
$hostname : string

Proxy hostname

$port : int

Proxy port

$ssiProcessor : mixed = null

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 => , 1 => )

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(string $urlPattern, array<string|int, mixed> $domainsAndPorts) : mixed

Each entry in the array $domainsAndPorts has the following structure: array(0 => , 1 => )

Parameters
$urlPattern : string

Drop all pages that match the pattern, for exact format, make educated guesses

$domainsAndPorts : array<string|int, mixed>

List of domains and ports that can be used to access this website

clearCachePageForDomainAndPort()

Clears a cache page

protected abstract 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

$port : int

Port to drop cache page of


        
On this page

Search results