Skip to content

Commit

Permalink
[impr-OpenMage#45] Do not clear product cache when saving a new product
Browse files Browse the repository at this point in the history
Resolves OpenMage#44
  • Loading branch information
tmotyl authored and edannenberg committed Aug 22, 2019
1 parent 02ece15 commit 5904778
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/core/Mage/Catalog/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,9 @@ protected function _getResource()
*/
public function cleanCache()
{
Mage::app()->cleanCache('catalog_product_'.$this->getId());
if ($this->getId()) {
Mage::app()->cleanCache('catalog_product_'.$this->getId());
}
return $this;
}

Expand Down

0 comments on commit 5904778

Please sign in to comment.