Skip to content

Commit 4c27d03

Browse files
ENGCOM-3470: Changes cache hosts warning / critical levels and continue on multiple hosts #18852
- Merge Pull Request #18852 from wiardvanrij/magento2:varnishpurge - Merged commits: 1. a8f662e 2. 04aa94e 3. 0ab520a 4. fb5a9d1 5. 7f2c079 6. d74640a 7. 9a5bc5f 8. de6af27 9. e95de00
2 parents e23a715 + e95de00 commit 4c27d03

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/code/Magento/CacheInvalidate/Model/PurgeCache.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ private function sendPurgeRequestToServers($socketAdapter, $servers, $formattedT
140140
$errorCount = count($unresponsiveServerError);
141141

142142
if ($errorCount > 0) {
143-
144143
$loggerMessage = implode(" ", $unresponsiveServerError);
145144

146145
if ($errorCount == count($servers)) {
@@ -150,7 +149,7 @@ private function sendPurgeRequestToServers($socketAdapter, $servers, $formattedT
150149
);
151150
return false;
152151
}
153-
152+
154153
$this->logger->warning(
155154
'Unresponsive cache server(s) hit' . $loggerMessage,
156155
compact('server', 'formattedTagsChunk')

lib/internal/Magento/Framework/Cache/InvalidateLogger.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
use Magento\Framework\App\Request\Http as HttpRequest;
1111
use Psr\Log\LoggerInterface as Logger;
1212

13+
/**
14+
* Invalidate logger cache.
15+
*/
1316
class InvalidateLogger
1417
{
1518
/**
@@ -34,6 +37,7 @@ public function __construct(HttpRequest $request, Logger $logger)
3437

3538
/**
3639
* Logger invalidate cache
40+
*
3741
* @param mixed $invalidateInfo
3842
* @return void
3943
*/
@@ -44,6 +48,7 @@ public function execute($invalidateInfo)
4448

4549
/**
4650
* Make extra data to logger message
51+
*
4752
* @param mixed $invalidateInfo
4853
* @return array
4954
*/

0 commit comments

Comments
 (0)