PHP Class Nexcessnet_Turpentine_EsiController

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 Mage_Core_Controller_Front_Action
Datei anzeigen Open project: nexcess/magento-turpentine

Public Methods

Method Description
getBlockAction ( ) : null Spit out the rendered block from the URL-encoded data
getFormKeyAction ( ) : null Spit out the form key for this session
indexAction ( ) : null It seems this has to exist so we just make it redirect to the base URL for lack of anything better to do.
postDispatch ( ) : null Need to disable this flag to prevent setting the last URL but we don't want to completely break sessions.

Protected Methods

Method Description
_getEsiBlock ( Varien_Object $esiData ) : Mage_Core_Block_Template | null Generate the ESI block
_swapCustomerHandles ( array $handles ) : array Swap customer_logged_in and customer_logged_out cached handles based on actual customer login status. Fixes stale Login/Logout links (and probably other things).

Method Details

_getEsiBlock() protected method

Generate the ESI block
protected _getEsiBlock ( Varien_Object $esiData ) : Mage_Core_Block_Template | null
$esiData Varien_Object
return Mage_Core_Block_Template | null

_swapCustomerHandles() protected method

This is definitely a hack, need a more general solution to this problem.
protected _swapCustomerHandles ( array $handles ) : array
$handles array
return array

getBlockAction() public method

Spit out the rendered block from the URL-encoded data
public getBlockAction ( ) : null
return null

getFormKeyAction() public method

Spit out the form key for this session
public getFormKeyAction ( ) : null
return null

indexAction() public method

It seems this has to exist so we just make it redirect to the base URL for lack of anything better to do.
public indexAction ( ) : null
return null

postDispatch() public method

see Mage_Core_Controller_Front_Action::postDispatch
public postDispatch ( ) : null
return null