@@ 162-176 (lines=15) @@ | ||
159 | * |
|
160 | * @return Nginx |
|
161 | */ |
|
162 | protected function getProxyClient($purgeLocation = '') |
|
163 | { |
|
164 | if (null === $this->proxyClient) { |
|
165 | $httpDispatcher = new HttpDispatcher( |
|
166 | ['http://127.0.0.1:'.$this->getCachingProxyPort()], |
|
167 | $this->getHostName().':'.$this->getCachingProxyPort() |
|
168 | ); |
|
169 | ||
170 | $this->proxyClient = new Nginx($httpDispatcher, [ |
|
171 | 'purge_location' => $purgeLocation, |
|
172 | ]); |
|
173 | } |
|
174 | ||
175 | return $this->proxyClient; |
|
176 | } |
|
177 | } |
|
178 |
@@ 110-122 (lines=13) @@ | ||
107 | * |
|
108 | * @return LiteSpeed |
|
109 | */ |
|
110 | protected function getProxyClient() |
|
111 | { |
|
112 | if (null === $this->proxyClient) { |
|
113 | $httpDispatcher = new HttpDispatcher( |
|
114 | ['http://127.0.0.1:'.$this->getCachingProxyPort()], |
|
115 | $this->getHostName().':'.$this->getCachingProxyPort() |
|
116 | ); |
|
117 | ||
118 | $this->proxyClient = new LiteSpeed($httpDispatcher); |
|
119 | } |
|
120 | ||
121 | return $this->proxyClient; |
|
122 | } |
|
123 | } |
|
124 |