app/code/community/Nexcessnet/Turpentine/Model/Varnish/Configurator/Version2.php 1 location
|
@@ 55-68 (lines=14) @@
|
| 52 |
|
* |
| 53 |
|
* @return array |
| 54 |
|
*/ |
| 55 |
|
protected function _getTemplateVars() { |
| 56 |
|
$vars = parent::_getTemplateVars(); |
| 57 |
|
$vars['esi_public_ttl'] = $this->_getDefaultTtl(); |
| 58 |
|
$vars['advanced_session_validation'] = |
| 59 |
|
$this->_getAdvancedSessionValidation(); |
| 60 |
|
|
| 61 |
|
//dispatch event to allow other extensions to add custom vcl template variables |
| 62 |
|
Mage::dispatchEvent('turpentine_get_templatevars_after', array( |
| 63 |
|
'vars' => &$vars, |
| 64 |
|
'vcl_version'=> self::VCL_VERSION |
| 65 |
|
)); |
| 66 |
|
|
| 67 |
|
return $vars; |
| 68 |
|
} |
| 69 |
|
} |
| 70 |
|
|
app/code/community/Nexcessnet/Turpentine/Model/Varnish/Configurator/Version3.php 1 location
|
@@ 61-73 (lines=13) @@
|
| 58 |
|
* |
| 59 |
|
* @return array |
| 60 |
|
*/ |
| 61 |
|
protected function _getTemplateVars() { |
| 62 |
|
$vars = parent::_getTemplateVars(); |
| 63 |
|
$vars['advanced_session_validation'] = |
| 64 |
|
$this->_getAdvancedSessionValidation(); |
| 65 |
|
|
| 66 |
|
//dispatch event to allow other extensions to add custom vcl template variables |
| 67 |
|
Mage::dispatchEvent('turpentine_get_templatevars_after', array( |
| 68 |
|
'vars' => &$vars, |
| 69 |
|
'vcl_version'=> self::VCL_VERSION |
| 70 |
|
)); |
| 71 |
|
|
| 72 |
|
return $vars; |
| 73 |
|
} |
| 74 |
|
} |
| 75 |
|
|