Verify the Commerce cache

Make sure the <magento_root>/var/page_cache directory is empty:

  1. Log in to your Commerce server, or switch to, the file system owner.

  2. Enter the following command:

    rm -rf <magento_root>/var/page_cache/*
    
  3. Access one or more cacheable Commerce pages.

  4. Check the var/page_cache/ directory.

    If the directory is empty, congratulations! You successfully configured Varnish and Commerce to work together!

  5. If you cleared the var/page_cache/ directory, restart Varnish.

TIP
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

Commerce