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.
/** * Build the list of template variables to apply to the VCL template * * @return array */ protected function _getTemplateVars() { $vars = parent::_getTemplateVars(); $vars['esi_public_ttl'] = $this->_getDefaultTtl(); $vars['advanced_session_validation'] = $this->_getAdvancedSessionValidation(); return $vars; }
/** * Build the list of template variables to apply to the VCL template * * @return array */ protected function _getTemplateVars() { $vars = parent::_getTemplateVars(); $vars['advanced_session_validation'] = $this->_getAdvancedSessionValidation(); if (Mage::getStoreConfig('turpentine_vcl/backend/load_balancing') != 'no') { $vars['directors'] = $this->_vcl_directors(); $vars['admin_backend_hint'] = 'vdir_admin.backend()'; $vars['set_backend_hint'] = 'set req.backend_hint = vdir.backend();'; } else { $vars['directors'] = ''; $vars['admin_backend_hint'] = 'admin'; $vars['set_backend_hint'] = ''; } return $vars; }
/** * Build the list of template variables to apply to the VCL template * * @return array */ protected function _getTemplateVars() { $vars = parent::_getTemplateVars(); $vars['advanced_session_validation'] = $this->_getAdvancedSessionValidation(); return $vars; }
/** * Get a configurator based on the first socket in the server list * * @return Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract */ public function getConfigurator() { $sockets = Mage::helper('turpentine/varnish')->getSockets(); $cfgr = Nexcessnet_Turpentine_Model_Varnish_Configurator_Abstract::getFromSocket($sockets[0]); return $cfgr; }