How do you verify a Magento 2 purge on every Varnish node?

2 min read

An origin server cabled to two cache nodes with cyan and amber indicators

Choose one public CMS page on staging. Record its address and a content marker such as v1. Map the origin, each Varnish node, and any load balancer or CDN that can select a response on your behalf.

A store domain and a cache node address serve different purposes

After Flush Cache Storage, Kowal Purge Varnish Cache 1.0.8 extracts distinct hostnames from the base URLs. It sends a ban for each hostname to the same local management endpoint, 127.0.0.1:6082. Two language views on one domain produced one command. The command result describes the connection it used. Check responses to confirm coverage. Kowal Purge Varnish Cache. Module documentation.

Change the content and read the same URL at each node

Confirm v1 at every point before the test. Change the content to v2 and verify the origin. The local simulation used the original observer and a substitute for the Varnish client. After A accepted the commands, B still served v1. After B’s copy was invalidated too, both nodes served v2.

One CMS page and two simulated Varnish nodes
StageOriginVarnish AVarnish B
Before the editv1v1v1
Change at originv2v1v1
Ban on A onlyv2v2v1
B invalidated toov2v2v2

On staging, keep the same domain, protocol and path. Read without a session through the approved route to each node. If B alone returns old content, check that it is on Adobe Commerce’s HTTP cache host list and that it accepted the purge. Check the usual CDN-facing URL after the per-node reads. Adobe Commerce Varnish host configuration.

For setup and initial acceptance, see the earlier Purge Varnish Cache guide.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)