Skip to content

CacheInvalidate : stop at first server not responding #18056

Closed
@benjamin-volle

Description

@benjamin-volle

Preconditions

All Magento versions

Steps to reproduce

  1. Setup 2 Varnish servers (cache1 and cache2) in the http_cache_hosts section of "env.php"
  2. Turn off the first one (cache1)
  3. Try to flush the full_page by launching bin/magento cache:flush full_page

Expected result

The full_page is flushed for cache2 (the only one responding)

Actual result

The full_page is not flushed for all servers

The problem is located here :
\Magento\CacheInvalidate\Model\PurgeCache::sendPurgeRequest

In the "foreach" loop, there is a "return false" at the first exception insteag of "continue", preventing the try on all servers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: PageCacheFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions