Skip to content

Commit

Permalink
Mage_PageCache - mini DOC block update
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored and tmotyl committed May 9, 2020
1 parent ff757c9 commit d934c2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/code/core/Mage/PageCache/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function processPreDispatch(Varien_Event_Observer $observer)
if (!$this->isCacheEnabled()) {
return $this;
}
/** @var Mage_Core_Controller_Front_Action $action */
$action = $observer->getEvent()->getControllerAction();
$request = $action->getRequest();
$needCaching = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ public function cleanAction()
Mage::helper('pagecache')->__('The external full page cache has been cleaned.')
);
}
}
catch (Mage_Core_Exception $e) {
} catch (Mage_Core_Exception $e) {
$this->_getSession()->addError($e->getMessage());
}
catch (Exception $e) {
} catch (Exception $e) {
$this->_getSession()->addException(
$e,
Mage::helper('pagecache')->__('An error occurred while clearing the external full page cache.')
Expand Down

0 comments on commit d934c2c

Please sign in to comment.