Property | Type | Description | |
---|---|---|---|
$_esiClearFlag | boolean | Flag to prevent doing the ESI cache clear more than once per request | |
$_varnishAdmin | Nexcessnet_Turpentine_Model_Varnish_Admin | Cache the varnish admin object |
Method | Description | |
---|---|---|
banAllCache ( Varien_Object $eventObject ) : null | Do a full cache flush, corresponds to "Flush Magento Cache" and "Flush Cache Storage" buttons in admin > cache management | |
banCacheType ( Varien_Object $eventObject ) : null | Do a flush on the ESI blocks | |
banCatalogImagesCache ( Varien_Object $eventObject ) : null | Flush catalog images cache, corresponds to same button in admin cache management page | |
banCategoryCache ( Varien_Object $eventObject ) : null | Ban a category page, and any subpages on save | |
banClientEsiCache ( Varien_Object $eventObject ) : null | Clear the ESI block cache for a specific client | |
banCmsPageCache ( Varien_Object $eventObject ) : null | Ban a specific CMS page from cache after edit | |
banCmsPageRevisionCache ( Varien_Object $eventObject ) : null | Ban a specific CMS page revision from cache after edit (enterprise edition only) Events: enterprise_cms_revision_save_commit_after | |
banMediaCache ( Varien_Object $eventObject ) : null | Clear the media (CSS/JS) cache, corresponds to the buttons on the cache page in admin | |
banProductPageCache ( Varien_Object $eventObject ) : null | Ban a specific product page from the cache | |
banProductPageCacheCheckStock ( Varien_Object $eventObject ) : null | Ban a product page from the cache if it's stock status changed | |
banProductReview ( Varien_Object $eventObject ) : boolean | Ban a product's reviews page |
Method | Description | |
---|---|---|
_checkResult ( array $result ) : boolean | Check a result from varnish admin action, log if result has errors | |
_getVarnishAdmin ( ) : Nexcessnet_Turpentine_Model_Varnish_Admin | Get the varnish admin socket |
protected _checkResult ( array $result ) : boolean | ||
$result | array | stored as $socketName => $result |
return | boolean |
protected _getVarnishAdmin ( ) : Nexcessnet_Turpentine_Model_Varnish_Admin | ||
return | Nexcessnet_Turpentine_Model_Varnish_Admin |
public banAllCache ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public banCacheType ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public banCatalogImagesCache ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public banCategoryCache ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public banClientEsiCache ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public banCmsPageCache ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public banCmsPageRevisionCache ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public banMediaCache ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public banProductPageCache ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public banProductPageCacheCheckStock ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public banProductReview ( Varien_Object $eventObject ) : boolean | ||
$eventObject | Varien_Object | |
return | boolean |
protected bool $_esiClearFlag | ||
return | boolean |