Last active
August 29, 2015 14:07
-
-
Save Marko-M/f08fd9d3da71077792ed to your computer and use it in GitHub Desktop.
Magento Enterprise edition block_html cache ban bugfix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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