I'm updating product stock inventory attribute programactically. Considering performance, instead of saving whole product, I'm saving quantity attribute only.
// $quantity value
$stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product);
$mainCurrQty = $stock->getQty();
$stock->setQty($mainCurrQty-$quantity);
At the same time I want to call catalog_product_save_after
observer which is not working as it's not saving the product and saving the attribute value only. How I can call catalog_product_save_after
observer when only a particular attribute value is updated programatically?