For some reason I want to disable Full Page Cache for category pages.
I have created my custom module for this but some reason it is not working.

<?xml version="1.0"?>



class Custom_HeaderFix_Model_Observer {

    public function processPreDispatch(Varien_Event_Observer $observer) {
        $action = $observer->getEvent()->getControllerAction();

        if ($action instanceof Mage_Catalog_CategoryController) {
        $cache = Mage::app()->getCacheInstance();

        // Tell Magento to 'ban' the use of FPC for this request


I have used similar code for disabling FPC from home page and that worked.

1 Answer 1


Code is working fine, there was some modifications directly in core files which are preventing my code to work.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.