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 Dec 6, 2017
1 parent d653865 commit dc12341
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 @@ -615,7 +615,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 dc12341

Please sign in to comment.