Skip to content

Instantly share code, notes, and snippets.

@Marko-M
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Marko-M/f08fd9d3da71077792ed to your computer and use it in GitHub Desktop.
Save Marko-M/f08fd9d3da71077792ed to your computer and use it in GitHub Desktop.
Magento Enterprise edition block_html cache ban bugfix
<?php
class Whatever_Whatever_Model_Pagecache_Processor extends Enterprise_PageCache_Model_Processor
{
/**
* Do additional validation for request to be cached. Add condition that request must
* have request subprocessor implemented in order to be considered cacheable.
* Deals with bug found by @tim_bezhashvyly.
*
* @param Zend_Controller_Request_Http $request
* @return bool
*/
public function canProcessRequest(Zend_Controller_Request_Http $request)
{
return parent::canProcessRequest($request) && $this->getRequestProcessor($request);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment