Verify the Commerce cache
Make sure the <magento_root>/var/page_cache
directory is empty:
-
Log in to your Commerce server, or switch to, the file system owner.
-
Enter the following command:
rm -rf <magento_root>/var/page_cache/*
-
Access one or more cacheable Commerce pages.
-
Check the
var/page_cache/
directory.If the directory is empty, congratulations! You successfully configured Varnish and Commerce to work together!
-
If you cleared the
var/page_cache/
directory, restart Varnish.
If you encounter 503 (Backend Fetch Failed) errors, see Troubleshooting 503 (Service Unavailable) errors in the Adobe Commerce Help Center.
Previous pageCache clearing multiple Varnish instances
Next pageVarnish ESI block