VclGenerator
Magento\PageCache\Model\Varnish\VclGenerator
What it does
This class generates Varnish VCL (Varnish Configuration Language) files for Magento 2's full page caching system.
Developers use it to create customized Varnish configuration files with backend server details, access control lists, SSL offloading headers, and design exceptions based on user agents.
It transforms a VCL template by replacing placeholders with actual configuration values from Magento.
Public Methods
- generateVcl()