Model
VclTemplateLocator
Magento\PageCache\Model\Varnish\VclTemplateLocator
What it does
This class locates and retrieves Varnish VCL (Varnish Configuration Language) template files based on the Varnish version being used.
Developers use it to get the appropriate VCL configuration template when setting up or generating Varnish cache configuration files for Magento 2's full page cache feature.
It supports Varnish versions 6 and 7, with older versions deprecated.
Public Methods
- getTemplate()