PHP Class Nexcessnet_Turpentine_Model_Varnish_Configurator_Version4

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Inheritance: extends Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract
Datei anzeigen Open project: nexcess/magento-turpentine

Public Methods

Method Description
generate ( boolean $doClean = true ) : string Generate the Varnish 4.0-compatible VCL

Protected Methods

Method Description
_getAdvancedSessionValidation ( ) TODO: Check this
_getTemplateVars ( ) : array Build the list of template variables to apply to the VCL template
_vcl_director ( string $name, array $backendOptions ) : string Format a VCL director declaration, for load balancing
_vcl_director_backend ( string $host, string $port, string $descriptor, string $probeUrl = '', array $options = [] ) : string Format a VCL backend declaration to put inside director
_vcl_directors ( )

Method Details

_getAdvancedSessionValidation() protected method

TODO: Check this

_getTemplateVars() protected method

Build the list of template variables to apply to the VCL template
protected _getTemplateVars ( ) : array
return array

_vcl_director() protected method

Format a VCL director declaration, for load balancing
protected _vcl_director ( string $name, array $backendOptions ) : string
$name string name of the director, also used to select config settings
$backendOptions array options for each backend
return string

_vcl_director_backend() protected method

Format a VCL backend declaration to put inside director
protected _vcl_director_backend ( string $host, string $port, string $descriptor, string $probeUrl = '', array $options = [] ) : string
$host string backend host
$port string backend port
$descriptor string backend descriptor
$probeUrl string URL to check if backend is up
$options array extra options for backend
return string

_vcl_directors() protected method

protected _vcl_directors ( )

generate() public method

Generate the Varnish 4.0-compatible VCL
public generate ( boolean $doClean = true ) : string
$doClean boolean if true, VCL will be cleaned (whitespaces stripped, etc.)
return string