Skip to content

Commit af3de71

Browse files
committed
MAGETWO-95275: Varnish "Connection reset by peer" error when large catalog is reindexed on schedule
1 parent 9abf89b commit af3de71

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
use Magento\Framework\Cache\InvalidateLogger;
99

10+
/**
11+
* Class PurgeCache
12+
*/
1013
class PurgeCache
1114
{
1215
const HEADER_X_MAGENTO_TAGS_PATTERN = 'X-Magento-Tags-Pattern';
@@ -56,8 +59,7 @@ public function __construct(
5659
}
5760

5861
/**
59-
* Send curl purge request
60-
* to invalidate cache by tags pattern
62+
* Send curl purge request to invalidate cache by tags pattern
6163
*
6264
* @param string $tagsPattern
6365
* @return bool Return true if successful; otherwise return false
@@ -106,8 +108,7 @@ private function splitTags($tagsPattern)
106108
}
107109

108110
/**
109-
* Send curl purge request to servers
110-
* to invalidate cache by tags pattern
111+
* Send curl purge request to servers to invalidate cache by tags pattern
111112
*
112113
* @param \Zend\Http\Client\Adapter\Socket $socketAdapter
113114
* @param \Zend\Uri\Uri[] $servers

0 commit comments

Comments
 (0)